All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix patch base/connlimit in pom-20040409
@ 2004-04-11 11:35 Friedrich Lobenstock
  0 siblings, 0 replies; only message in thread
From: Friedrich Lobenstock @ 2004-04-11 11:35 UTC (permalink / raw)
  To: Netfilter Development Mailinglist

[-- Attachment #1: Type: text/plain, Size: 341 bytes --]

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.

-- 
MfG / Regards
Friedrich Lobenstock

[-- Attachment #2: patch-base-connlimit-patch --]
[-- Type: text/plain, Size: 1312 bytes --]

--- patch-o-matic-20040409/base/connlimit.patch.broken	2004-04-11 14:22:08.000000000 +0200
+++ patch-o-matic-20040409/base/connlimit.patch	2004-04-11 14:28:31.000000000 +0200
@@ -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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-04-11 11:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-11 11:35 [PATCH] fix patch base/connlimit in pom-20040409 Friedrich Lobenstock

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.