Root/target/linux/generic-2.4/patches/604-netfilter_maxconn.patch

1--- a/net/ipv4/netfilter/ip_conntrack_core.c
2+++ b/net/ipv4/netfilter/ip_conntrack_core.c
3@@ -1407,7 +1407,7 @@ void ip_conntrack_cleanup(void)
4     nf_unregister_sockopt(&so_getorigdst);
5 }
6 
7-static int hashsize = 0;
8+static int hashsize = 5953;
9 MODULE_PARM(hashsize, "i");
10 
11 int __init ip_conntrack_init(void)
12@@ -1428,7 +1428,7 @@ int __init ip_conntrack_init(void)
13         if (ip_conntrack_htable_size < 16)
14             ip_conntrack_htable_size = 16;
15     }
16- ip_conntrack_max = 8 * ip_conntrack_htable_size;
17+ ip_conntrack_max = ip_conntrack_htable_size;
18 
19     printk("ip_conntrack version %s (%u buckets, %d max)"
20            " - %Zd bytes per conntrack\n", IP_CONNTRACK_VERSION,
21

Archive Download this file



interactive