From 23545c2a7a31c68c1e49c7c901b632c2f1c59968 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 14 Feb 2008 04:23:04 +0100 Subject: Implement AF_UNSPEC as a wildcard for extensions --- extensions/libxt_length.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'extensions/libxt_length.c') diff --git a/extensions/libxt_length.c b/extensions/libxt_length.c index b812b672..16e00bd9 100644 --- a/extensions/libxt_length.c +++ b/extensions/libxt_length.c @@ -125,21 +125,7 @@ static void length_save(const void *ip, const struct xt_entry_match *match) } static struct xtables_match length_match = { - .family = AF_INET, - .name = "length", - .version = IPTABLES_VERSION, - .size = XT_ALIGN(sizeof(struct xt_length_info)), - .userspacesize = XT_ALIGN(sizeof(struct xt_length_info)), - .help = length_help, - .parse = length_parse, - .final_check = length_check, - .print = length_print, - .save = length_save, - .extra_opts = length_opts, -}; - -static struct xtables_match length_match6 = { - .family = AF_INET6, + .family = AF_UNSPEC, .name = "length", .version = IPTABLES_VERSION, .size = XT_ALIGN(sizeof(struct xt_length_info)), @@ -155,5 +141,4 @@ static struct xtables_match length_match6 = { void _init(void) { xtables_register_match(&length_match); - xtables_register_match(&length_match6); } -- cgit v1.2.3