diff options
author | Rick Jones <rick.jones2@hp.com> | 2006-03-21 01:40:29 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-21 01:40:29 -0500 |
commit | 15d99e02babae8bc20b836917ace07d93e318149 (patch) | |
tree | 6a8941a3ef45f831161730aeee4a2fcc18cca78a /net/ipv4/sysctl_net_ipv4.c | |
parent | c1b1bce8527c2c3cac7e2520ca54b7c04281033e (diff) |
[TCP]: sysctl to allow TCP window > 32767 sans wscale
Back in the dark ages, we had to be conservative and only allow 15-bit
window fields if the window scale option was not negotiated. Some
ancient stacks used a signed 16-bit quantity for the window field of
the TCP header and would get confused.
Those days are long gone, so we can use the full 16-bits by default
now.
There is a sysctl added so that we can still interact with such old
stacks
Signed-off-by: Rick Jones <rick.jones2@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/sysctl_net_ipv4.c')
-rw-r--r-- | net/ipv4/sysctl_net_ipv4.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c index ebf2e0b363c4..6b6c3adfcf00 100644 --- a/net/ipv4/sysctl_net_ipv4.c +++ b/net/ipv4/sysctl_net_ipv4.c | |||
@@ -680,7 +680,14 @@ ctl_table ipv4_table[] = { | |||
680 | .mode = 0644, | 680 | .mode = 0644, |
681 | .proc_handler = &proc_dointvec, | 681 | .proc_handler = &proc_dointvec, |
682 | }, | 682 | }, |
683 | 683 | { | |
684 | .ctl_name = NET_IPV4_TCP_WORKAROUND_SIGNED_WINDOWS, | ||
685 | .procname = "tcp_workaround_signed_windows", | ||
686 | .data = &sysctl_tcp_workaround_signed_windows, | ||
687 | .maxlen = sizeof(int), | ||
688 | .mode = 0644, | ||
689 | .proc_handler = &proc_dointvec | ||
690 | }, | ||
684 | { .ctl_name = 0 } | 691 | { .ctl_name = 0 } |
685 | }; | 692 | }; |
686 | 693 | ||