aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorNikolay Borisov <kernel@kyup.com>2016-02-03 02:46:51 -0500
committerDavid S. Miller <davem@davemloft.net>2016-02-07 14:35:10 -0500
commit12ed8244ed8b31b023ea6d2851fd8b15f2999e9b (patch)
tree5634ea70baf72e6d4008d3daa40d0f4dbbee1705 /net/ipv4/tcp_ipv4.c
parent7c083ecb3ba4583a625d5ff9655d1a819e374493 (diff)
ipv4: Namespaceify tcp syncookies sysctl knob
Signed-off-by: Nikolay Borisov <kernel@kyup.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 3146279695b9..98313d10a2e0 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -860,7 +860,6 @@ static void tcp_v4_reqsk_destructor(struct request_sock *req)
860 kfree(inet_rsk(req)->opt); 860 kfree(inet_rsk(req)->opt);
861} 861}
862 862
863
864#ifdef CONFIG_TCP_MD5SIG 863#ifdef CONFIG_TCP_MD5SIG
865/* 864/*
866 * RFC2385 MD5 checksumming requires a mapping of 865 * RFC2385 MD5 checksumming requires a mapping of
@@ -2391,6 +2390,8 @@ static int __net_init tcp_sk_init(struct net *net)
2391 net->ipv4.sysctl_tcp_syn_retries = TCP_SYN_RETRIES; 2390 net->ipv4.sysctl_tcp_syn_retries = TCP_SYN_RETRIES;
2392 net->ipv4.sysctl_tcp_synack_retries = TCP_SYNACK_RETRIES; 2391 net->ipv4.sysctl_tcp_synack_retries = TCP_SYNACK_RETRIES;
2393 2392
2393 net->ipv4.sysctl_tcp_syncookies = 0;
2394
2394 return 0; 2395 return 0;
2395fail: 2396fail:
2396 tcp_sk_exit(net); 2397 tcp_sk_exit(net);