selftests: mptcp: add inq test case
authorFlorian Westphal <fw@strlen.de>
Fri, 3 Dec 2021 22:35:35 +0000 (14:35 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 7 Dec 2021 19:36:30 +0000 (11:36 -0800)
commitb51880568f20250cc62057f4b747c8212ac3e06c
tree3d1be2cebb4211ee20a24169b4178ab356cac182
parent644807e3e4629b3fbb99032401f57a0f7e06f506
selftests: mptcp: add inq test case

client & server use a unix socket connection to communicate
outside of the mptcp connection.

This allows the consumer to know in advance how many bytes have been
(or will be) sent by the peer.
This allows stricter checks on the bytecounts reported by TCP_INQ cmsg.

Suggested-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/.gitignore
tools/testing/selftests/net/mptcp/Makefile
tools/testing/selftests/net/mptcp/mptcp_inq.c [new file with mode: 0644]
tools/testing/selftests/net/mptcp/mptcp_sockopt.sh