Re: [PATCH bpf-next] selftests, bpf: test_tc_tunnel.sh nc: cannot use -p and -l

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 19, 2021 at 03:30:22PM -0700, Vincent Li wrote:
> 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().
I have two distros and both work with -p in listen.
However, they also work the same without -p, so it makes sense to remove it.

Acked-by: Martin KaFai Lau <kafai@xxxxxx>



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux