diff options
author | /C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net> | 2008-04-14 06:56:58 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net> | 2008-04-14 06:56:58 +0000 |
commit | 5bc09b8e9db045c7136d76405c1733ea531be0f7 (patch) | |
tree | f8573e27cc0839f96f38c7c6572fce57aa20b2c9 /extensions/libxt_length.c | |
parent | dd4d9577333c0a748445204d981295d49e593bb2 (diff) |
[PATCH 8/8] Implement AF_UNSPEC as a wildcard for extensions
Diffstat (limited to 'extensions/libxt_length.c')
-rw-r--r-- | extensions/libxt_length.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/extensions/libxt_length.c b/extensions/libxt_length.c index b812b67..16e00bd 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); } |