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_standard.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'extensions/libxt_standard.c') diff --git a/extensions/libxt_standard.c b/extensions/libxt_standard.c index eef9369b..a50cffe9 100644 --- a/extensions/libxt_standard.c +++ b/extensions/libxt_standard.c @@ -24,17 +24,7 @@ static int standard_parse(int c, char **argv, int invert, unsigned int *flags, } static struct xtables_target standard_target = { - .family = AF_INET, - .name = "standard", - .version = IPTABLES_VERSION, - .size = XT_ALIGN(sizeof(int)), - .userspacesize = XT_ALIGN(sizeof(int)), - .help = standard_help, - .parse = standard_parse, -}; - -static struct xtables_target standard_target6 = { - .family = AF_INET6, + .family = AF_UNSPEC, .name = "standard", .version = IPTABLES_VERSION, .size = XT_ALIGN(sizeof(int)), @@ -46,5 +36,4 @@ static struct xtables_target standard_target6 = { void _init(void) { xtables_register_target(&standard_target); - xtables_register_target(&standard_target6); } -- cgit v1.2.3