diff options
author | Matthieu Baerts <matthieu.baerts@tessares.net> | 2022-11-30 15:06:23 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-12-01 20:06:05 -0800 |
commit | b4e0df4cafe112220c19d30439732d22289147f1 (patch) | |
tree | 3ad656b84ec96cfccefac87dfc80c4249ba83fee /tools | |
parent | a802073d1c9ca2ffd757ab8df5afa9d73ba7e6b1 (diff) | |
download | linux-stable-b4e0df4cafe112220c19d30439732d22289147f1.tar.gz linux-stable-b4e0df4cafe112220c19d30439732d22289147f1.tar.bz2 linux-stable-b4e0df4cafe112220c19d30439732d22289147f1.zip |
selftests: mptcp: run mptcp_inq from a clean netns
A new "sandbox" net namespace is available where no other netfilter
rules have been added.
Use this new netns instead of re-using "ns1" and clean it.
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testing/selftests/net/mptcp/mptcp_sockopt.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/testing/selftests/net/mptcp/mptcp_sockopt.sh b/tools/testing/selftests/net/mptcp/mptcp_sockopt.sh index 80d36f7cfee8..8a83100b212e 100755 --- a/tools/testing/selftests/net/mptcp/mptcp_sockopt.sh +++ b/tools/testing/selftests/net/mptcp/mptcp_sockopt.sh @@ -282,7 +282,7 @@ run_tests() do_tcpinq_test() { - ip netns exec "$ns1" ./mptcp_inq "$@" + ip netns exec "$ns_sbox" ./mptcp_inq "$@" lret=$? if [ $lret -ne 0 ];then ret=$lret @@ -298,9 +298,6 @@ do_tcpinq_tests() { local lret=0 - ip netns exec "$ns1" iptables -F - ip netns exec "$ns1" ip6tables -F - for args in "-t tcp" "-r tcp"; do do_tcpinq_test $args lret=$? |