Skip to content

Commit

Permalink
selftests: mptcp: run mptcp_inq from a clean netns
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matthieu Baerts authored and Jakub Kicinski committed Dec 2, 2022
1 parent a802073 commit b4e0df4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tools/testing/selftests/net/mptcp/mptcp_sockopt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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=$?
Expand Down

0 comments on commit b4e0df4

Please sign in to comment.