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_quota.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'extensions/libxt_quota.c') diff --git a/extensions/libxt_quota.c b/extensions/libxt_quota.c index b4fb78b..590dbfb 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); } -- cgit v1.2.3