diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-04-11 17:37:07 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-04-11 17:37:07 +0000 |
commit | 4d254ffa10d1c7202f2e4d55148c3aef20dd6f89 (patch) | |
tree | b18a9e83d99841943d27c57663150992fc1efccf /openwrt/package | |
parent | b6c9718e198542eb9332ac87cce30793b6c674c2 (diff) | |
download | mtk-20170518-4d254ffa10d1c7202f2e4d55148c3aef20dd6f89.zip mtk-20170518-4d254ffa10d1c7202f2e4d55148c3aef20dd6f89.tar.gz mtk-20170518-4d254ffa10d1c7202f2e4d55148c3aef20dd6f89.tar.bz2 |
add y354C's patch for maximum nat connections in netfilter
SVN-Revision: 630
Diffstat (limited to 'openwrt/package')
-rw-r--r-- | openwrt/package/linux/kernel-patches/310-netfilter-maxconn | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/openwrt/package/linux/kernel-patches/310-netfilter-maxconn b/openwrt/package/linux/kernel-patches/310-netfilter-maxconn new file mode 100644 index 0000000..87be89d --- /dev/null +++ b/openwrt/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, |