diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-04-11 17:37:07 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-04-11 17:37:07 +0000 |
commit | a4fca17541401c298ad06e1a56e15782ab2435cd (patch) | |
tree | 0d7e7424b394ba2d60391a9d3ab3bc382bc7e6ed /package | |
parent | f838644c0df28b24dbe1d9efa29d8e3de3b9cae1 (diff) |
add y354C's patch for maximum nat connections in netfilter
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@630 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/linux/kernel-patches/310-netfilter-maxconn | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/package/linux/kernel-patches/310-netfilter-maxconn b/package/linux/kernel-patches/310-netfilter-maxconn new file mode 100644 index 0000000000..87be89d72f --- /dev/null +++ b/package/linux/kernel-patches/310-netfilter-maxconn @@ -0,0 +1,20 @@ +--- ../../buildroot-unpacked/build_mipsel/linux/net/ipv4/netfilter/ip_conntrack_core.c 2004-11-28 22:59:36.000000000 -0500 ++++ linux/net/ipv4/netfilter/ip_conntrack_core.c 2004-11-30 05:05:32.000000000 -0500 +@@ -1386,7 +1386,7 @@ + nf_unregister_sockopt(&so_getorigdst); + } + +-static int hashsize = 0; ++static int hashsize = 5953 + MODULE_PARM(hashsize, "i"); + + int __init ip_conntrack_init(void) +@@ -1407,7 +1407,7 @@ + if (ip_conntrack_htable_size < 16) + ip_conntrack_htable_size = 16; + } +- ip_conntrack_max = 8 * ip_conntrack_htable_size; ++ ip_conntrack_max = ip_conntrack_htable_size; + + printk("ip_conntrack version %s (%u buckets, %d max)" + " - %Zd bytes per conntrack\n", IP_CONNTRACK_VERSION, |