diff options
author | Nikolay Borisov <kernel@kyup.com> | 2016-02-03 10:46:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-07 22:35:10 +0300 |
commit | 6fa251663069e05daadd1666cbf3b658bf840ea4 (patch) | |
tree | 9aac155e077a393b1c813501de1d37a1c6e3e31a /net/ipv4/tcp.c | |
parent | 9d1eb21b59967b337695ed6df66c6d225e3019e0 (diff) | |
download | linux-6fa251663069e05daadd1666cbf3b658bf840ea4.tar.xz |
ipv4: Namespaceify tcp syn retries sysctl knob
Signed-off-by: Nikolay Borisov <kernel@kyup.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index c5075779e017..3dbb3637bb4b 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -2731,6 +2731,7 @@ static int do_tcp_getsockopt(struct sock *sk, int level, { struct inet_connection_sock *icsk = inet_csk(sk); struct tcp_sock *tp = tcp_sk(sk); + struct net *net = sock_net(sk); int val, len; if (get_user(len, optlen)) @@ -2765,7 +2766,7 @@ static int do_tcp_getsockopt(struct sock *sk, int level, val = keepalive_probes(tp); break; case TCP_SYNCNT: - val = icsk->icsk_syn_retries ? : sysctl_tcp_syn_retries; + val = icsk->icsk_syn_retries ? : net->ipv4.sysctl_tcp_syn_retries; break; case TCP_LINGER2: val = tp->linger2; |