From 5bc09b8e9db045c7136d76405c1733ea531be0f7 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net" Date: Mon, 14 Apr 2008 06:56:58 +0000 Subject: [PATCH 8/8] Implement AF_UNSPEC as a wildcard for extensions --- extensions/libxt_TRACE.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'extensions/libxt_TRACE.c') diff --git a/extensions/libxt_TRACE.c b/extensions/libxt_TRACE.c index c70df6a..97e3a03 100644 --- a/extensions/libxt_TRACE.c +++ b/extensions/libxt_TRACE.c @@ -24,17 +24,7 @@ static int TRACE_parse(int c, char **argv, int invert, unsigned int *flags, } static struct xtables_target trace_target = { - .family = AF_INET, - .name = "TRACE", - .version = IPTABLES_VERSION, - .size = XT_ALIGN(0), - .userspacesize = XT_ALIGN(0), - .help = TRACE_help, - .parse = TRACE_parse, -}; - -static struct xtables_target trace_target6 = { - .family = AF_INET6, + .family = AF_UNSPEC, .name = "TRACE", .version = IPTABLES_VERSION, .size = XT_ALIGN(0), @@ -46,5 +36,4 @@ static struct xtables_target trace_target6 = { void _init(void) { xtables_register_target(&trace_target); - xtables_register_target(&trace_target6); } -- cgit v1.2.3