Skip to content

mptcp: TCP_MD5SIG support

Geliang Tang mptcp 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest7 patches 1 replyIn review
  2. v58 patches 1 replySuperseded
  3. v42 patches 7 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v32 patches1 replySuperseded
v22 patches5 repliesSuperseded
v13 patches10 repliesSuperseded

Changes in v6 from the cover letter

- update selftests.
- move "tcp: md5: remove redundant l3flag variable" into this set.

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7tcp: md5: remove redundant l3flag variablenet/ipv4/tcp_ipv4.c net/ipv6/tcp_ipv6.c+5 -110 replies
2/7mptcp: handle TCP_MAXSEG getsockopt in common casenet/mptcp/sockopt.c+1 -30 replies
3/7mptcp: setsockopt support for TCP_MD5SIGnet/mptcp/sockopt.c net/mptcp/subflow.c+15 -20 replies
4/7selftests: mptcp: sockopt: add md5 argumenttools/testing/selftests/net/mptcp/mptcp_sockopt.c+14 -20 replies
5/7selftests: mptcp: sockopt: implement TCP_MD5SIG supporttools/testing/selftests/net/mptcp/mptcp_sockopt.c+49 -00 replies
6/7selftests: mptcp: sockopt: skip getsockopt for MD5 teststools/testing/selftests/net/mptcp/mptcp_sockopt.c+9 -120 replies
7/7selftests: mptcp: sockopt: add TCP_MD5SIG test casestools/testing/selftests/net/mptcp/config tools/testing/selftests/net/mptcp/mptcp_sockopt.sh+54 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH mptcp-next v6 0/7] mptcp: TCP_MD5SIG support

From: Geliang Tang <[email protected]>

v6:
- update selftests.
- move "tcp: md5: remove redundant l3flag variable" into this set.

v5:
- new selftests for MD5.

v4:
- drop CONFIG_TCP_MD5SIG check.
- drop sk_state check.
- use WARN_ON_ONCE for __mptcp_try_fallback().

v3:
- limit the use of these options for listened and closed state.
- check the return value of __mptcp_try_fallback().

v2:
- trigger fallback to TCP.
- check CONFIG_TCP_MD5SIG.
- update MD5 comment.
- drop selftests, packetdrill tests will be added later.

This series introduces support for TCP_MD5SIG socket options in MPTCP along with code improvements:

Patch 1: Refactors TCP_MAXSEG getsockopt handling to improve code consistency
Patch 2: Adds setsockopt support for TCP_MD5SIG/TCP_MD5SIG_EXT (first subflow only)

Geliang Tang (7):
tcp: md5: remove redundant l3flag variable
mptcp: handle TCP_MAXSEG getsockopt in common case
mptcp: setsockopt support for TCP_MD5SIG
selftests: mptcp: sockopt: add md5 argument
selftests: mptcp: sockopt: implement TCP_MD5SIG support
selftests: mptcp: sockopt: skip getsockopt for MD5 tests
selftests: mptcp: sockopt: add TCP_MD5SIG test cases

 net/ipv4/tcp_ipv4.c                           |  7 +-
 net/ipv6/tcp_ipv6.c                           |  9 +-
 net/mptcp/sockopt.c                           | 18 ++--
 net/mptcp/subflow.c                           |  3 +
 tools/testing/selftests/net/mptcp/config      |  3 +
 .../selftests/net/mptcp/mptcp_sockopt.c       | 86 ++++++++++++++++---
 .../selftests/net/mptcp/mptcp_sockopt.sh      | 51 +++++++++++
 7 files changed, 147 insertions(+), 30 deletions(-)
Signature · 1 line
2.43.0