]> git.baikalelectronics.ru Git - kernel.git/commit
selftests, bpf: test_tc_tunnel.sh nc: Cannot use -p and -l
authorVincent Li <vincent.mc.li@gmail.com>
Mon, 19 Jul 2021 22:30:22 +0000 (15:30 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 20 Jul 2021 20:43:00 +0000 (13:43 -0700)
commit0203ab8eb73a477554fed746935e29b4c73b9c3a
tree5b1e80f72ccb5fab300d130a059331f6b0c7f4d4
parentd0f7b26f68ff051f03f0d6265e7caabb050b117a
selftests, bpf: test_tc_tunnel.sh nc: Cannot use -p and -l

When run test_tc_tunnel.sh, it complains following error

ipip
encap 192.168.1.1 to 192.168.1.2, type ipip, mac none len 100
test basic connectivity
nc: cannot use -p and -l

nc man page has:

     -l  Listen for an incoming connection rather than initiating
         a connection to a remote host.Cannot be used together with
         any of the options -psxz. Additionally, any timeouts specified
         with the -w option are ignored.

Correct nc in server_listen().

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20210719223022.66681-1-vincent.mc.li@gmail.com
tools/testing/selftests/bpf/test_tc_tunnel.sh