linux/tools/testing/selftests/net/mptcp
Matthieu Baerts (NGI0) 4d2868b5d1 selftests: mptcp: join: test both signal & subflow
It should be quite uncommon to set both the subflow and the signal
flags: the initiator of the connection is typically the one creating new
subflows, not the other peer, then no need to announce additional local
addresses, and use it to create subflows.

But some people might be confused about the flags, and set both "just to
be sure at least the right one is set". To verify the previous fix, and
avoid future regressions, this specific case is now validated: the
client announces a new address, and initiates a new subflow from the
same address.

While working on this, another bug has been noticed, where the client
reset the new subflow because an ADD_ADDR echo got received as the 3rd
ACK: this new test also explicitly checks that no RST have been sent by
the client and server.

The 'Fixes' tag here below is the same as the one from the previous
commit: this patch here is not fixing anything wrong in the selftests,
but it validates the previous fix for an issue introduced by this commit
ID.

Fixes: 86e39e0448 ("mptcp: keep track of local endpoint still available for each msk")
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20240731-upstream-net-20240731-mptcp-endp-subflow-signal-v1-7-c8a9b036493b@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-08-01 18:24:49 -07:00
..
.gitignore selftests: mptcp: add inq test case 2021-12-07 11:36:30 -08:00
config selftests: mptcp: add missing kconfig for NF Mangle 2024-02-01 09:06:37 -08:00
diag.sh selftests: mptcp: test last time mptcp_info 2024-04-11 08:19:54 -07:00
Makefile selftests: mptcp: connect: skip if MPTCP is not supported 2023-05-30 13:21:02 +02:00
mptcp_connect.c selftests: mptcp: always close input's FD if opened 2024-07-29 13:31:27 +01:00
mptcp_connect.sh selftests: mptcp: add tc check for check_tools 2024-04-08 11:53:20 +01:00
mptcp_inq.c selftests/net: mptcp: fix uninitialized variable warnings 2023-11-27 18:12:07 -08:00
mptcp_join.sh selftests: mptcp: join: test both signal & subflow 2024-08-01 18:24:49 -07:00
mptcp_lib.sh selftests: mptcp: lib: fix shellcheck errors 2024-07-13 15:46:26 -07:00
mptcp_sockopt.c selftests: mptcp: add MPTCP_FULL_INFO testcase 2023-06-21 22:45:58 -07:00
mptcp_sockopt.sh selftests: mptcp: ip_mptcp option for more scripts 2024-04-08 11:53:21 +01:00
pm_netlink.sh selftests: mptcp: netlink: drop disable=SC2086 2024-04-08 11:53:21 +01:00
pm_nl_ctl.c selftests/net: fix uninitialized variables 2024-05-07 17:22:18 -07:00
settings selftests: mptcp: increase timeout to 30 min 2024-02-01 09:06:37 -08:00
simult_flows.sh selftests: mptcp: simult flows: mark 'unbalanced' tests as flaky 2024-05-27 17:12:50 -07:00
userspace_pm.sh selftests: mptcp: userspace_pm: fixed subtest names 2024-06-17 17:54:51 -07:00