On Apr 7 2007 18:55, Patrick Ale wrote:
> Hello! :)
> I am getting the following error when using linux-2.6.21 or any resent git
> tree:
> WARNING: "ipt_unregister_match" [net/ipv4/netfilter/ipt_connlimit.ko]
> undefined!
>
> I searched google a bit, and I see I am not the only one.
> Only problem is I can't really find someone smashing the hammer as of
> how I can fix this error :)
>
> Any help would be appriciated!
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);
|