diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2008-02-14 04:23:04 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-04-14 08:56:58 +0200 |
commit | 23545c2a7a31c68c1e49c7c901b632c2f1c59968 (patch) | |
tree | f8573e27cc0839f96f38c7c6572fce57aa20b2c9 /extensions/libxt_standard.c | |
parent | bce1c2159f8d24479e994a22561c0f97df4aec4d (diff) |
Implement AF_UNSPEC as a wildcard for extensions
Diffstat (limited to 'extensions/libxt_standard.c')
-rw-r--r-- | extensions/libxt_standard.c | 13 |
1 files changed, 1 insertions, 12 deletions
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); } |