selftests: mptcp: join: only check for ip6tables if needed
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Tue, 25 Jul 2023 18:34:55 +0000 (11:34 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 26 Jul 2023 23:48:54 +0000 (16:48 -0700)
commit016e7ba47f33064fbef8c4307a2485d2669dfd03
tree65e2e383c5d21426014fc24e41a36703d741325f
parentfa29d467977d50400f6bb1374e942e7474fdf53c
selftests: mptcp: join: only check for ip6tables if needed

If 'iptables-legacy' is available, 'ip6tables-legacy' command will be
used instead of 'ip6tables'. So no need to look if 'ip6tables' is
available in this case.

Cc: stable@vger.kernel.org
Fixes: 0c4cd3f86a40 ("selftests: mptcp: join: use 'iptables-legacy' if available")
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Mat Martineau <martineau@kernel.org>
Link: https://lore.kernel.org/r/20230725-send-net-20230725-v1-1-6f60fe7137a9@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_join.sh