diff options
author | Eric Dumazet <edumazet@google.com> | 2017-06-07 19:34:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-08 16:53:28 +0200 |
commit | eed29f17f09ad7f400bc245f209acad6a8214fac (patch) | |
tree | 98ec65923f889616029ece56a785e6038a1e1cf5 /net/ipv6/syncookies.c | |
parent | net: propagate tc filter chain index down the ndo_setup_tc call (diff) | |
download | linux-eed29f17f09ad7f400bc245f209acad6a8214fac.tar.xz linux-eed29f17f09ad7f400bc245f209acad6a8214fac.zip |
tcp: add a struct net parameter to tcp_parse_options()
We want to move some TCP sysctls to net namespaces in the future.
tcp_window_scaling, tcp_sack and tcp_timestamps being fetched
from tcp_parse_options(), we need to pass an extra parameter.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/syncookies.c')
-rw-r--r-- | net/ipv6/syncookies.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/syncookies.c b/net/ipv6/syncookies.c index 971823359f5b..4c0a047ec230 100644 --- a/net/ipv6/syncookies.c +++ b/net/ipv6/syncookies.c @@ -162,7 +162,7 @@ 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, |