From 23c9bbee12b08bcbc82188dabe3bf8135756c183 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Thu, 6 Dec 2012 23:16:54 +0000 Subject: pfinet: increase local port range * pfinet/linux-src/net/ipv4/tcp_ipv4.c (sysctl_local_port_range): Set port range to 32768-61000. --- pfinet/linux-src/net/ipv4/tcp_ipv4.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pfinet/linux-src/net/ipv4/tcp_ipv4.c b/pfinet/linux-src/net/ipv4/tcp_ipv4.c index 99194238..60d2bdb4 100644 --- a/pfinet/linux-src/net/ipv4/tcp_ipv4.c +++ b/pfinet/linux-src/net/ipv4/tcp_ipv4.c @@ -113,7 +113,11 @@ struct sock *tcp_regs[TCP_NUM_REGS]; * For high-usage systems, use sysctl to change this to * 32768-61000 */ +#if 0 int sysctl_local_port_range[2] = { 1024, 4999 }; +#else +int sysctl_local_port_range[2] = { 32768, 61000 }; +#endif int tcp_port_rover = (1024 - 1); static __inline__ int tcp_hashfn(__u32 laddr, __u16 lport, -- cgit v1.2.3