diff options
author | David S. Miller <davem@davemloft.net> | 2017-06-08 10:53:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-08 10:53:30 -0400 |
commit | 06fcb3b69fb8699afa04b020d2a95bd6c4c798ac (patch) | |
tree | a339d50c4c0977fa75bc467fafd93ff6a922dec2 /net/ipv6/syncookies.c | |
parent | a5fcf8a6c968ed8e312ff0b2a55d4c62d821eabb (diff) | |
parent | 5d2ed0521ac98f1ae0243fe52b8ebf95e2abf791 (diff) | |
download | linux-06fcb3b69fb8699afa04b020d2a95bd6c4c798ac.tar.gz linux-06fcb3b69fb8699afa04b020d2a95bd6c4c798ac.tar.bz2 linux-06fcb3b69fb8699afa04b020d2a95bd6c4c798ac.zip |
Merge branch 'tcp-Namespaceify-3-sysctls'
Eric Dumazet says:
====================
tcp: Namespaceify 3 sysctls
Move tcp_sack, tcp_window_scaling and tcp_timestamps
sysctls to network namespaces.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/syncookies.c')
-rw-r--r-- | net/ipv6/syncookies.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/ipv6/syncookies.c b/net/ipv6/syncookies.c index 971823359f5b..2f7e99af67db 100644 --- a/net/ipv6/syncookies.c +++ b/net/ipv6/syncookies.c @@ -162,15 +162,16 @@ struct sock *cookie_v6_check(struct sock *sk, struct sk_buff *skb) /* check for timestamp cookie support */ memset(&tcp_opt, 0, sizeof(tcp_opt)); - tcp_parse_options(skb, &tcp_opt, 0, NULL); + tcp_parse_options(sock_net(sk), skb, &tcp_opt, 0, NULL); if (tcp_opt.saw_tstamp && tcp_opt.rcv_tsecr) { - tsoff = secure_tcpv6_ts_off(ipv6_hdr(skb)->daddr.s6_addr32, + tsoff = secure_tcpv6_ts_off(sock_net(sk), + ipv6_hdr(skb)->daddr.s6_addr32, ipv6_hdr(skb)->saddr.s6_addr32); tcp_opt.rcv_tsecr -= tsoff; } - if (!cookie_timestamp_decode(&tcp_opt)) + if (!cookie_timestamp_decode(sock_net(sk), &tcp_opt)) goto out; ret = NULL; |