selftests: nft_concat_range: add socat support
authorFlorian Westphal <fw@strlen.de>
Wed, 31 Aug 2022 13:12:45 +0000 (15:12 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 7 Sep 2022 13:06:26 +0000 (15:06 +0200)
commit25b327d4f818b9d41265ea3eea26d805216589b8
tree7d726b9a32a1a26806b0aeceade826258a415832
parent39aebedeaaa95757f5c1f2ddb5f43fdddbf478ca
selftests: nft_concat_range: add socat support

There are different flavors of 'nc' around, this script fails on
my test vm because 'nc' is 'nmap-ncat' which isn't 100% compatible.

Add socat support and use it if available.

Signed-off-by: Florian Westphal <fw@strlen.de>
tools/testing/selftests/netfilter/nft_concat_range.sh