Re: [libvirt] [PATCHv3 2/2] Support IPv6 in port allocator

2014-02-13 Thread Eric Blake
On 02/06/2014 09:43 AM, Ján Tomko wrote: Also try to bind on IPv6 to check if the port is occupied. Change the mocked bind in the test to return EADDRINUSE for some ports only for the IPv4/IPv6 socket if we're testing on a host with IPv6 compiled in. Also mock socket() to make it fail

[libvirt] [PATCHv3 2/2] Support IPv6 in port allocator

2014-02-06 Thread Ján Tomko
Also try to bind on IPv6 to check if the port is occupied. Change the mocked bind in the test to return EADDRINUSE for some ports only for the IPv4/IPv6 socket if we're testing on a host with IPv6 compiled in. Also mock socket() to make it fail with EAFNOTSUPPORTED if LIBVIRT_TEST_IPV4ONLY is