]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: More compatible nc options in test_tc_edt
authorJiri Benc <jbenc@redhat.com>
Fri, 18 Oct 2019 12:00:42 +0000 (14:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Nov 2019 18:27:41 +0000 (19:27 +0100)
commit690a68940a8ba50fd4bbae6976d181039a83547c
tree9cf3f103ffdcdb19a5c61f8948d3722ccb6b1190
parent38dc6b5959af978740b50a50ca229f73f701b578
selftests/bpf: More compatible nc options in test_tc_edt

[ Upstream commit 11875ba7f251c52effb2b924e04c2ddefa9856ef ]

Out of the three nc implementations widely in use, at least two (BSD netcat
and nmap-ncat) do not support -l combined with -s. Modify the nc invocation
to be accepted by all of them.

Fixes: 7df5e3db8f63 ("selftests: bpf: tc-bpf flow shaping with EDT")
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Peter Oskolkov <posk@google.com>
Link: https://lore.kernel.org/bpf/f5bf07dccd8b552a76c84d49e80b86c5aa071122.1571400024.git.jbenc@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/test_tc_edt.sh