diff options
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index da6e24416d7..f2ec38289a4 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -1864,6 +1864,19 @@ static int tcp_v6_init_sock(struct sock *sk) | |||
1864 | tp->af_specific = &tcp_sock_ipv6_specific; | 1864 | tp->af_specific = &tcp_sock_ipv6_specific; |
1865 | #endif | 1865 | #endif |
1866 | 1866 | ||
1867 | /* TCP Cookie Transactions */ | ||
1868 | if (sysctl_tcp_cookie_size > 0) { | ||
1869 | /* Default, cookies without s_data_payload. */ | ||
1870 | tp->cookie_values = | ||
1871 | kzalloc(sizeof(*tp->cookie_values), | ||
1872 | sk->sk_allocation); | ||
1873 | if (tp->cookie_values != NULL) | ||
1874 | kref_init(&tp->cookie_values->kref); | ||
1875 | } | ||
1876 | /* Presumed zeroed, in order of appearance: | ||
1877 | * cookie_in_always, cookie_out_never, | ||
1878 | * s_data_constant, s_data_in, s_data_out | ||
1879 | */ | ||
1867 | sk->sk_sndbuf = sysctl_tcp_wmem[1]; | 1880 | sk->sk_sndbuf = sysctl_tcp_wmem[1]; |
1868 | sk->sk_rcvbuf = sysctl_tcp_rmem[1]; | 1881 | sk->sk_rcvbuf = sysctl_tcp_rmem[1]; |
1869 | 1882 | ||