From 8ee5f9fb325e92cfcbe25fcc0d83bb3b7b32d0c2 Mon Sep 17 00:00:00 2001 From: Mike Baker Date: Sat, 8 Jan 2005 09:41:51 +0000 Subject: [PATCH] increase netfilter conntrack hashes SVN-Revision: 193 --- .../patches/110-conntrack_setting.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 obsolete-buildroot/sources/openwrt/kernel/netfilter/patches/110-conntrack_setting.patch 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 0000000000..87be89d72f --- /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,