]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2e55fc211c0e125fbff7b6a0766e1138cdee69e4
treeb5d66d260159e0b56a68a1cb91eac32a85fec688
parente03b61f4e75eb7a234bf6eca594ece994c327574
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