Fix compilation of ipt_connlimit.
Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Index: linux-2.6.21-rc5/net/ipv4/netfilter/ipt_connlimit.c
===================================================================
--- linux-2.6.21-rc5.orig/net/ipv4/netfilter/ipt_connlimit.c
+++ linux-2.6.21-rc5/net/ipv4/netfilter/ipt_connlimit.c
@@ -291,8 +291,9 @@ static void destroy(
kfree(info->data);
}
-static struct ipt_match connlimit_match = {
+static struct xt_match connlimit_match = {
.name = "connlimit",
+ .family = AF_INET,
.match = &match,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17)
.matchsize = sizeof(struct ipt_connlimit_info),
@@ -304,12 +305,12 @@ static struct ipt_match connlimit_match
static int __init init(void)
{
- return ipt_register_match(&connlimit_match);
+ return xt_register_match(&connlimit_match);
}
static void __exit fini(void)
{
- ipt_unregister_match(&connlimit_match);
+ xt_unregister_match(&connlimit_match);
}
module_init(init);
|