]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit680ca079a270894946655cf94ebdab22cac0bc19
treeb2ba5218fe17bae705e846e1af473c82fd69e915
parentc615c4341a1e6fc94056f5e381654ddc740d8b55
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