Commit 06a6f4e
mptcp: setsockopt support for TCP_MD5SIG
Supporting TCP_MD5 socket option is required when MPTCP is used by
default when creating a socket, to keep the same behaviour as with
TCP. TCP_MD5 is not compatible with MPTCP, and it will cause a
fallback to TCP at the connection request, if MPTCP was requested.
This then fixes a "regression" compared to TCP.
This patch adds setsockopt support for TCP_MD5SIG and TCP_MD5SIG_EXT
options. The implementation:
- Allow setting these options (getsockopt remains unsupported)
- Apply them only to the first subflow
- Trigger fallback to TCP to maintain MD5 compatibility
Note that getsockopt for these options remains unsupported, consistent
with TCP.
Closes: multipath-tcp/mptcp_net-next#575
Fixes: d9e4c12 ("mptcp: only admit explicitly supported sockopt")
Signed-off-by: Geliang Tang <[email protected]>1 parent ca5c827 commit 06a6f4e
1 file changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
567 | 568 | | |
568 | 569 | | |
569 | 570 | | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
570 | 574 | | |
571 | 575 | | |
572 | 576 | | |
573 | | - | |
574 | | - | |
575 | 577 | | |
576 | 578 | | |
577 | 579 | | |
| |||
836 | 838 | | |
837 | 839 | | |
838 | 840 | | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
839 | 854 | | |
840 | 855 | | |
841 | 856 | | |
| |||
0 commit comments