[PATCH 4/7] ipt_connlimit compile fix for 2.6.21

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix compilation of ipt_connlimit.

Signed-off-by: Jan Engelhardt <jengelh@xxxxxx>

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);


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux