[libvirt] [PATCHv3 2/2] Support IPv6 in port allocator
Eric Blake
eblake at redhat.com
Thu Feb 13 21:25:56 UTC 2014
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 with EAFNOTSUPPORTED
> if LIBVIRT_TEST_IPV4ONLY is set in the environment, to
> simulate a host without IPv6 support in the kernel. The
> tests are repeated again with this variable set.
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1025407
> ---
> src/util/virportallocator.c | 46 +++++++++++++++++++++++++-----
> tests/virportallocatortest.c | 68 ++++++++++++++++++++++++++++++++++++++++++--
> 2 files changed, 104 insertions(+), 10 deletions(-)
ACK.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140213/4a2f5ce1/attachment-0001.sig>
More information about the libvir-list
mailing list