summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_rateest.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_rateest.c
parentbce1c2159f8d24479e994a22561c0f97df4aec4d (diff)
Implement AF_UNSPEC as a wildcard for extensions
Diffstat (limited to 'extensions/libxt_rateest.c')
-rw-r--r--extensions/libxt_rateest.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/extensions/libxt_rateest.c b/extensions/libxt_rateest.c
index 5f13340f..a335781d 100644
--- a/extensions/libxt_rateest.c
+++ b/extensions/libxt_rateest.c
@@ -426,22 +426,8 @@ rateest_save(const void *ip, const struct xt_entry_match *match)
}
}
-static struct xtables_match rateest_match4 = {
- .family = AF_INET,
- .name = "rateest",
- .version = IPTABLES_VERSION,
- .size = XT_ALIGN(sizeof(struct xt_rateest_match_info)),
- .userspacesize = XT_ALIGN(offsetof(struct xt_rateest_match_info, est1)),
- .help = rateest_help,
- .parse = rateest_parse,
- .final_check = rateest_final_check,
- .print = rateest_print,
- .save = rateest_save,
- .extra_opts = rateest_opts,
-};
-
-static struct xtables_match rateest_match6 = {
- .family = AF_INET6,
+static struct xtables_match rateest_mt_reg = {
+ .family = AF_UNSPEC,
.name = "rateest",
.version = IPTABLES_VERSION,
.size = XT_ALIGN(sizeof(struct xt_rateest_match_info)),
@@ -456,6 +442,5 @@ static struct xtables_match rateest_match6 = {
void _init(void)
{
- xtables_register_match(&rateest_match4);
- xtables_register_match(&rateest_match6);
+ xtables_register_match(&rateest_mt_reg);
}