linux-stable/tools/testing/selftests/net/mptcp
Florian Westphal ce9979129a selftests: mptcp: add mptcp getsockopt test cases
Add a test program that retrieves the three info types:
1. mptcp meta information
2. tcp info for subflow
3. subflow endpoint addresses

For all three rudimentary checks are added.

1. Meta information checks that the logical mptcp
   sequence numbers advance as expected, based on the bytes read
   (init seq + bytes_received/sent) and the connection state
   (after close, we should exect 1 extra byte due to FIN).

2. TCP info checks the number of bytes sent/received vs.
   sums of read/write syscall return values.

3. Subflow endpoint addresses are checked vs. getsockname/getpeername
   result.

Tests for forward compatibility (0-initialisation of output-only
fields in mptcp_subflow_data structure) are added as well.

Co-developed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-09-18 14:20:01 +01:00
..
.gitignore selftests: mptcp: add mptcp getsockopt test cases 2021-09-18 14:20:01 +01:00
config selftests: mptcp: add ADD_ADDR timeout test case 2020-11-04 17:45:53 -08:00
diag.sh selftests: mptcp: launch mptcp_connect with timeout 2021-04-02 14:21:50 -07:00
Makefile selftests: mptcp: add mptcp getsockopt test cases 2021-09-18 14:20:01 +01:00
mptcp_connect.c selftests: mptcp_connect: add SO_TIMESTAMPNS cmsg support 2021-06-04 14:08:09 -07:00
mptcp_connect.sh selftests: mptcp: display proper reason to abort tests 2021-06-22 09:57:45 -07:00
mptcp_join.sh selftests: mptcp: add MP_FAIL mibs check 2021-08-25 11:02:35 +01:00
mptcp_sockopt.c selftests: mptcp: add mptcp getsockopt test cases 2021-09-18 14:20:01 +01:00
mptcp_sockopt.sh selftests: mptcp: add mptcp getsockopt test cases 2021-09-18 14:20:01 +01:00
pm_netlink.sh selftests: mptcp: avoid calling pm_nl_ctl with bad IDs 2021-03-30 17:42:23 -07:00
pm_nl_ctl.c selftests: mptcp: set and print the fullmesh flag 2021-08-18 10:10:01 +01:00
settings selftests: increase timeout to 10 min 2021-01-27 16:53:55 -08:00
simult_flows.sh selftests: mptcp: clean tmp files in simult_flows 2021-09-01 10:55:49 -07:00