]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: syncookies: create mptcp request socket for ACK cookies with MPTCP option
authorFlorian Westphal <fw@strlen.de>
Thu, 30 Jul 2020 19:25:55 +0000 (21:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Jul 2020 23:55:32 +0000 (16:55 -0700)
commit3c55aa58f6d7c9fdebb745f5742cd9a3e08ccd63
treef80652d4e2f503448acd4b507f4372b83b1312ea
parentb83f506bf8db0affbfa6bc985885e6e988c3e32a
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>
include/net/tcp.h
net/ipv4/syncookies.c
net/ipv4/tcp_input.c
net/ipv6/syncookies.c