[ovs-dev] [PATCH] system-traffic: use appropriate nc options for installed version

Joe Stringer joe at ovn.org
Thu Jan 21 21:19:37 UTC 2016


On 21 January 2016 at 11:57, Lance Richardson <lrichard at redhat.com> wrote:
> The "conntrack - ICMP related with NAT" test case currently fails
> on systems using the nmap version of nc because this version
> does not support the -q command-line option.
>
> Fix this by detecting when the nmap version is in use and using the
> corresponding "--send-only" command-line option:
>
>      --send-only   Only send data, ignoring received; quit on EOF
>
> Signed-off-by: Lance Richardson <lrichard at redhat.com>

Jarno / Daniele, do you have any thoughts on this approach?

The base problem is that 'nc' has significantly different
implementations if you're on RHEL, Debian or Ubuntu. In commit
dc55e9465511dee6c12dbf0edb4ce2d9af57cb15, I avoided this issue by
replacing the netcat command with openflow packet-outs, but I think
that the approach which Lance is proposing is more elegant. Perhaps we
should revert the above commit and apply a similar approach to that
test as well.



More information about the dev mailing list