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_quota.c | |
parent | bce1c2159f8d24479e994a22561c0f97df4aec4d (diff) |
Implement AF_UNSPEC as a wildcard for extensions
Diffstat (limited to 'extensions/libxt_quota.c')
-rw-r--r-- | extensions/libxt_quota.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/extensions/libxt_quota.c b/extensions/libxt_quota.c index b4fb78bb..590dbfbf 100644 --- a/extensions/libxt_quota.c +++ b/extensions/libxt_quota.c @@ -78,20 +78,7 @@ quota_parse(int c, char **argv, int invert, unsigned int *flags, } struct xtables_match quota_match = { - .family = AF_INET, - .name = "quota", - .version = IPTABLES_VERSION, - .size = XT_ALIGN(sizeof (struct xt_quota_info)), - .userspacesize = offsetof(struct xt_quota_info, quota), - .help = quota_help, - .parse = quota_parse, - .print = quota_print, - .save = quota_save, - .extra_opts = quota_opts, -}; - -struct xtables_match quota_match6 = { - .family = AF_INET6, + .family = AF_UNSPEC, .name = "quota", .version = IPTABLES_VERSION, .size = XT_ALIGN(sizeof (struct xt_quota_info)), @@ -107,5 +94,4 @@ void _init(void) { xtables_register_match("a_match); - xtables_register_match("a_match6); } |