selftests: netfilter: switch to socat for tests using -q option
authorHangbin Liu <liuhangbin@gmail.com>
Mon, 27 Dec 2021 03:52:53 +0000 (11:52 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 6 Jan 2022 09:43:18 +0000 (10:43 +0100)
commit1585f590a2e5dcae5833b05e030c47229299dd09
tree3c26f705511a0e1d56514a55081c395bc564860b
parentd94a69cb2cfa77294921aae9afcfb866e723a2da
selftests: netfilter: switch to socat for tests using -q option

The nc cmd(nmap-ncat) that distributed with Fedora/Red Hat does not have
option -q. This make some tests failed with:

nc: invalid option -- 'q'

Let's switch to socat which is far more dependable.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tools/testing/selftests/netfilter/ipip-conntrack-mtu.sh
tools/testing/selftests/netfilter/nf_nat_edemux.sh