This series of patches closes the support gap on one of the explicitly
[openwrt/svn-archive/archive.git] / target / linux / generic-2.4 / patches / 604-netfilter_maxconn.patch
1 Index: linux-2.4.35.4/net/ipv4/netfilter/ip_conntrack_core.c
2 ===================================================================
3 --- linux-2.4.35.4.orig/net/ipv4/netfilter/ip_conntrack_core.c
4 +++ linux-2.4.35.4/net/ipv4/netfilter/ip_conntrack_core.c
5 @@ -1410,7 +1410,7 @@ void ip_conntrack_cleanup(void)
6 nf_unregister_sockopt(&so_getorigdst);
7 }
8
9 -static int hashsize = 0;
10 +static int hashsize = 5953;
11 MODULE_PARM(hashsize, "i");
12
13 int __init ip_conntrack_init(void)
14 @@ -1431,7 +1431,7 @@ int __init ip_conntrack_init(void)
15 if (ip_conntrack_htable_size < 16)
16 ip_conntrack_htable_size = 16;
17 }
18 - ip_conntrack_max = 8 * ip_conntrack_htable_size;
19 + ip_conntrack_max = ip_conntrack_htable_size;
20
21 printk("ip_conntrack version %s (%u buckets, %d max)"
22 " - %Zd bytes per conntrack\n", IP_CONNTRACK_VERSION,