Skip to contentSkip to conversation

fix patch base/connlimit in pom-20040409

PATCH New Friedrich Lobenstock 1 participant 1 message Apr 11, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix patch base/connlimit in pom-20040409

Hi!

Attached you will find a patch to remove the usage of __MOD_INC_USE_COUNT from the base/connlimit patch which breaks a kernel compilation because of the undefined variable ip_conntrack_module.

__MOD_INC_USE_COUNT is depreciated anyway, as I was told.

PS: Apply with "-p1" in the pom directory.

Signature · 2 lines
MfG / Regards
Friedrich Lobenstock
base/connlimit.patch renamed from base/connlimit.patch.broken +3 -9
@@ -14,10 +14,9 @@
 +	struct ipt_connlimit_data *data;
 +};
 +#endif /* _IPT_CONNLIMIT_H */
-diff -urN -x *~ -x [Cc]onfig.* -x Makefile vanilla-2.4.0-test8/net/ipv4/netfilter/ipt_connlimit.c linux-2.4.0-test8/net/ipv4/netfilter/ipt_connlimit.c
---- vanilla-2.4.0-test8/net/ipv4/netfilter/ipt_connlimit.c	Thu Jan  1 01:00:00 1970
-+++ linux-2.4.0-test8/net/ipv4/netfilter/ipt_connlimit.c	Wed Nov 29 15:37:40 2000
-@@ -0,0 +1,232 @@
+--- linux-2.4.25/net/ipv4/netfilter/ipt_connlimit.c	2003-03-14 14:07:09.000000000 +0100
++++ linux-2.4.25/net/ipv4/netfilter/ipt_connlimit.c	2004-04-11 14:24:24.000000000 +0200
+@@ -0,0 +1,227 @@
 +/*
 + * netfilter module to limit the number of parallel tcp
 + * connections per IP address.
@@ -235,17 +234,12 @@
 +
 +static int __init init(void)
 +{
-+	/* NULL if ip_conntrack not a module */
-+	if (ip_conntrack_module)
-+		__MOD_INC_USE_COUNT(ip_conntrack_module);
 +	return ipt_register_match(&connlimit_match);
 +}
 +
 +static void __exit fini(void)
 +{
 +	ipt_unregister_match(&connlimit_match);
-+	if (ip_conntrack_module)
-+		__MOD_DEC_USE_COUNT(ip_conntrack_module);
 +}
 +
 +module_init(init);