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