diff options
author | Florian Westphal <fw@strlen.de> | 2020-07-30 21:25:55 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-31 16:55:32 -0700 |
commit | 6fc8c827dd4fa615965c4eac9bbfd465f6eb8fb4 (patch) | |
tree | f80652d4e2f503448acd4b507f4372b83b1312ea /net/ipv4/tcp_input.c | |
parent | c83a47e50d8fd3825a4758158e9edd5acdc74185 (diff) | |
download | linux-6fc8c827dd4fa615965c4eac9bbfd465f6eb8fb4.tar.gz linux-6fc8c827dd4fa615965c4eac9bbfd465f6eb8fb4.tar.bz2 linux-6fc8c827dd4fa615965c4eac9bbfd465f6eb8fb4.zip |
tcp: syncookies: create mptcp request socket for ACK cookies with MPTCP option
If SYN packet contains MP_CAPABLE option, keep it enabled.
Syncokie validation and cookie-based socket creation is changed to
instantiate an mptcp request sockets if the ACK contains an MPTCP
connection request.
Rather than extend both cookie_v4/6_check, add a common helper to create
the (mp)tcp request socket.
Suggested-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 11a6f128e51c..739da25b0c23 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -6701,9 +6701,6 @@ int tcp_conn_request(struct request_sock_ops *rsk_ops, af_ops->init_req(req, sk, skb); - if (IS_ENABLED(CONFIG_MPTCP) && want_cookie) - tcp_rsk(req)->is_mptcp = 0; - if (security_inet_conn_request(sk, skb, req)) goto drop_and_free; |