mptcp: add REUSEADDR/REUSEPORT support
authorFlorian Westphal <fw@strlen.de>
Sat, 4 Jul 2020 23:30:16 +0000 (01:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Jul 2020 00:56:22 +0000 (17:56 -0700)
commitfd1452d8ef988d228f5265147fde1017084404e4
treeb5d66d260159e0b56a68a1cb91eac32a85fec688
parent83f0c10bc36f956102ce4a33c5fe596ae9891297
mptcp: add REUSEADDR/REUSEPORT support

This will e.g. make 'sshd restart' work when MPTCP is used, as we will
now set this option on the listener socket instead of only the mptcp
socket (where it has no effect).

We still need to copy the setting to the master socket so that a
subsequent getsockopt() returns the expected value.

Reported-by: Christoph Paasch <cpaasch@apple.com>
Suggested-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c