summaryrefslogtreecommitdiffstats
path: root/net/ipv4/syncookies.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2017-06-07 10:34:38 -0700
committerDavid S. Miller <davem@davemloft.net>2017-06-08 10:53:29 -0400
commit9bb37ef00e932eb4b989e855245468feb3980700 (patch)
tree10e2be1fff8c29276c9db723bbf03c276df96664 /net/ipv4/syncookies.c
parentf930103421f6579719b8252285c94c1195f6e032 (diff)
downloadlinux-stable-9bb37ef00e932eb4b989e855245468feb3980700.tar.gz
linux-stable-9bb37ef00e932eb4b989e855245468feb3980700.tar.bz2
linux-stable-9bb37ef00e932eb4b989e855245468feb3980700.zip
tcp: Namespaceify sysctl_tcp_window_scaling
Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/syncookies.c')
-rw-r--r--net/ipv4/syncookies.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/syncookies.c b/net/ipv4/syncookies.c
index b386e8592ffd..3d74a45773f1 100644
--- a/net/ipv4/syncookies.c
+++ b/net/ipv4/syncookies.c
@@ -257,7 +257,7 @@ bool cookie_timestamp_decode(const struct net *net,
tcp_opt->wscale_ok = 1;
tcp_opt->snd_wscale = options & TS_OPT_WSCALE_MASK;
- return sysctl_tcp_window_scaling != 0;
+ return net->ipv4.sysctl_tcp_window_scaling != 0;
}
EXPORT_SYMBOL(cookie_timestamp_decode);