summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_statistic.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2008-02-14 04:23:04 +0100
committerPatrick McHardy <kaber@trash.net>2008-04-14 08:56:58 +0200
commit23545c2a7a31c68c1e49c7c901b632c2f1c59968 (patch)
treef8573e27cc0839f96f38c7c6572fce57aa20b2c9 /extensions/libxt_statistic.c
parentbce1c2159f8d24479e994a22561c0f97df4aec4d (diff)
Implement AF_UNSPEC as a wildcard for extensions
Diffstat (limited to 'extensions/libxt_statistic.c')
-rw-r--r--extensions/libxt_statistic.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/extensions/libxt_statistic.c b/extensions/libxt_statistic.c
index ebb4e914..2c2464dc 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);
}