diff options
Diffstat (limited to 'net/ipv6/syncookies.c')
-rw-r--r-- | net/ipv6/syncookies.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv6/syncookies.c b/net/ipv6/syncookies.c index 2906ef20795e..aab91fa86c5e 100644 --- a/net/ipv6/syncookies.c +++ b/net/ipv6/syncookies.c | |||
@@ -41,8 +41,7 @@ static __u16 const msstab[] = { | |||
41 | 9000 - 60, | 41 | 9000 - 60, |
42 | }; | 42 | }; |
43 | 43 | ||
44 | static DEFINE_PER_CPU(__u32 [16 + 5 + SHA_WORKSPACE_WORDS], | 44 | static DEFINE_PER_CPU(__u32 [16 + 5 + SHA_WORKSPACE_WORDS], ipv6_cookie_scratch); |
45 | ipv6_cookie_scratch); | ||
46 | 45 | ||
47 | static u32 cookie_hash(const struct in6_addr *saddr, const struct in6_addr *daddr, | 46 | static u32 cookie_hash(const struct in6_addr *saddr, const struct in6_addr *daddr, |
48 | __be16 sport, __be16 dport, u32 count, int c) | 47 | __be16 sport, __be16 dport, u32 count, int c) |
@@ -148,7 +147,7 @@ struct sock *cookie_v6_check(struct sock *sk, struct sk_buff *skb) | |||
148 | struct dst_entry *dst; | 147 | struct dst_entry *dst; |
149 | __u8 rcv_wscale; | 148 | __u8 rcv_wscale; |
150 | 149 | ||
151 | if (!sysctl_tcp_syncookies || !th->ack || th->rst) | 150 | if (!sock_net(sk)->ipv4.sysctl_tcp_syncookies || !th->ack || th->rst) |
152 | goto out; | 151 | goto out; |
153 | 152 | ||
154 | if (tcp_synq_no_recent_overflow(sk)) | 153 | if (tcp_synq_no_recent_overflow(sk)) |