OSDN Git Service

selftests: mptcp: add tproxy test case
authorFlorian Westphal <fw@strlen.de>
Fri, 19 Nov 2021 20:41:37 +0000 (12:41 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Nov 2021 14:11:00 +0000 (14:11 +0000)
commit5fb62e9cd3adadd95303447ee8e3f62ee98b0e73
treeb2ba5218fe17bae705e846e1af473c82fd69e915
parentc9406a23c1161c3a9a672d055ec840b00d730a6f
selftests: mptcp: add tproxy test case

No hard dependencies here, just skip if test environ lacks
nft binary or the needed kernel config options.

The test case spawns listener in ns2 but ns1 will connect
to the ip address of ns4.

policy routing + tproxy rule will redirect packets to ns2 instead
of forward.

v3: - update mptcp/config (Mat Martineau)
    - more verbose SKIP messages in mptcp_connect.sh

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>
tools/testing/selftests/net/mptcp/config
tools/testing/selftests/net/mptcp/mptcp_connect.c
tools/testing/selftests/net/mptcp/mptcp_connect.sh