diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-12-07 00:27:55 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-12-07 00:27:55 +0000 |
commit | bcb69cde55897eba64ee41b83e2d640ac3aabe7d (patch) | |
tree | 01473c85dd324e454feb8c6aecfab41626e7bc5d /debian/patches | |
parent | 33831f0ba604d4060d552a6c93f1d23b29672538 (diff) |
increase number of available local ports.
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/pfinet_local_port_range.patch | 27 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 28 insertions, 0 deletions
diff --git a/debian/patches/pfinet_local_port_range.patch b/debian/patches/pfinet_local_port_range.patch new file mode 100644 index 00000000..3103b8ae --- /dev/null +++ b/debian/patches/pfinet_local_port_range.patch @@ -0,0 +1,27 @@ +commit 23c9bbee12b08bcbc82188dabe3bf8135756c183 +Author: Richard Braun <rbraun@sceen.net> +Date: Thu Dec 6 23:16:54 2012 +0000 + + pfinet: increase local port range + + * pfinet/linux-src/net/ipv4/tcp_ipv4.c (sysctl_local_port_range): Set port + range to 32768-61000. + +merged upstream + +diff --git a/pfinet/linux-src/net/ipv4/tcp_ipv4.c b/pfinet/linux-src/net/ipv4/tcp_ipv4.c +index 9919423..60d2bdb 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, diff --git a/debian/patches/series b/debian/patches/series index 299b9452..44e45af1 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -41,3 +41,4 @@ libmachdev.patch exec_filename_exec.patch exec_filename_fs.patch exec_filename_use.patch +pfinet_local_port_range.patch |