diff options
author | Geliang Tang <[email protected]> | 2023-11-28 15:18:59 -0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-11-29 20:06:19 -0800 |
commit | 9369777c29395730cec967e7d0f48aed872b7110 (patch) | |
tree | 4063dcd327a2741245125e886d833d0c6c4c5642 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 9d9095bbc24df4432b38fb33a3cf59ea1e9213d0 (diff) |
selftests: mptcp: add mptcp_lib_wait_local_port_listen
To avoid duplicated code in different MPTCP selftests, we can add
and use helpers defined in mptcp_lib.sh.
wait_local_port_listen() helper is defined in diag.sh, mptcp_connect.sh,
mptcp_join.sh and simult_flows.sh, export it into mptcp_lib.sh and
rename it with mptcp_lib_ prefix. Use this new helper in all these
scripts.
Note: We only have IPv4 connections in this helper, not looking at IPv6
(tcp6) but that's OK because we only have IPv4 connections here in diag.sh.
Reviewed-by: Matthieu Baerts <[email protected]>
Signed-off-by: Geliang Tang <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions