]> 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)
commitfdc0ef47b3e5a14d879a7eb4228a568f86911b92
treeb2ba5218fe17bae705e846e1af473c82fd69e915
parenteb39983854a83d5d03cb4ec4537ac75c6757c873
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