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>
This commit is contained in:

committed by
David S. Miller

parent
a5fcf8a6c9
commit
eed29f17f0
@@ -312,7 +312,7 @@ struct sock *cookie_v4_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_tcp_ts_off(ip_hdr(skb)->daddr, ip_hdr(skb)->saddr);
|
||||
|
Reference in New Issue
Block a user