diff options
author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-01-08 09:41:51 +0000 |
---|---|---|
committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-01-08 09:41:51 +0000 |
commit | bb9182532f750129e1ebdeae0502d4bd48665ddd (patch) | |
tree | 51db2be68afeb618320ca0eaf61d38e08c0b6c15 /obsolete-buildroot/sources/openwrt | |
parent | 3542143e422ec3bcf768c8920357dae2e9761d92 (diff) |
increase netfilter conntrack hashes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@193 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'obsolete-buildroot/sources/openwrt')
-rw-r--r-- | obsolete-buildroot/sources/openwrt/kernel/netfilter/patches/110-conntrack_setting.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/obsolete-buildroot/sources/openwrt/kernel/netfilter/patches/110-conntrack_setting.patch b/obsolete-buildroot/sources/openwrt/kernel/netfilter/patches/110-conntrack_setting.patch new file mode 100644 index 000000000..87be89d72 --- /dev/null +++ b/obsolete-buildroot/sources/openwrt/kernel/netfilter/patches/110-conntrack_setting.patch @@ -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, |