tcp: Namespaceify sysctl_tcp_window_scaling
Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
f930103421
commit
9bb37ef00e
@@ -77,7 +77,6 @@
|
||||
#include <linux/errqueue.h>
|
||||
|
||||
int sysctl_tcp_timestamps __read_mostly = 1;
|
||||
int sysctl_tcp_window_scaling __read_mostly = 1;
|
||||
int sysctl_tcp_fack __read_mostly;
|
||||
int sysctl_tcp_max_reordering __read_mostly = 300;
|
||||
int sysctl_tcp_dsack __read_mostly = 1;
|
||||
@@ -3765,7 +3764,7 @@ void tcp_parse_options(const struct net *net,
|
||||
break;
|
||||
case TCPOPT_WINDOW:
|
||||
if (opsize == TCPOLEN_WINDOW && th->syn &&
|
||||
!estab && sysctl_tcp_window_scaling) {
|
||||
!estab && net->ipv4.sysctl_tcp_window_scaling) {
|
||||
__u8 snd_wscale = *(__u8 *)ptr;
|
||||
opt_rx->wscale_ok = 1;
|
||||
if (snd_wscale > TCP_MAX_WSCALE) {
|
||||
|
Reference in New Issue
Block a user