From: Friedrich Lobenstock <fl@fl.priv.at>
To: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Subject: [PATCH] fix patch base/connlimit in pom-20040409
Date: Sun, 11 Apr 2004 13:35:56 +0200 [thread overview]
Message-ID: <40792D9C.9030807@fl.priv.at> (raw)
[-- 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);
reply other threads:[~2004-04-11 11:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40792D9C.9030807@fl.priv.at \
--to=fl@fl.priv.at \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.