summaryrefslogtreecommitdiff
path: root/pfinet
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2012-12-06 23:16:54 +0000
committerRichard Braun <rbraun@sceen.net>2012-12-06 23:20:15 +0000
commit23c9bbee12b08bcbc82188dabe3bf8135756c183 (patch)
tree7e154872b99e1fdbaa40b0bd46548e56e80cd3b6 /pfinet
parent1d767442294df64b9746f02cd6fcf320da257b1f (diff)
pfinet: increase local port range
* pfinet/linux-src/net/ipv4/tcp_ipv4.c (sysctl_local_port_range): Set port range to 32768-61000.
Diffstat (limited to 'pfinet')
-rw-r--r--pfinet/linux-src/net/ipv4/tcp_ipv4.c4
1 files changed, 4 insertions, 0 deletions
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,