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_statistic.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'extensions/libxt_statistic.c') diff --git a/extensions/libxt_statistic.c b/extensions/libxt_statistic.c index ebb4e91..2c2464d 100644 --- a/extensions/libxt_statistic.c +++ b/extensions/libxt_statistic.c @@ -164,22 +164,7 @@ static void statistic_save(const void *ip, const struct xt_entry_match *match) } static struct xtables_match statistic_match = { - .family = AF_INET, - .name = "statistic", - .version = IPTABLES_VERSION, - .size = XT_ALIGN(sizeof(struct xt_statistic_info)), - .userspacesize = offsetof(struct xt_statistic_info, u.nth.count), - .init = statistic_mt_init, - .help = statistic_help, - .parse = statistic_parse, - .final_check = statistic_check, - .print = statistic_print, - .save = statistic_save, - .extra_opts = statistic_opts, -}; - -static struct xtables_match statistic_match6 = { - .family = AF_INET6, + .family = AF_UNSPEC, .name = "statistic", .version = IPTABLES_VERSION, .size = XT_ALIGN(sizeof(struct xt_statistic_info)), @@ -196,5 +181,4 @@ static struct xtables_match statistic_match6 = { void _init(void) { xtables_register_match(&statistic_match); - xtables_register_match(&statistic_match6); } -- cgit v1.2.3