diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2016-03-08 11:39:36 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2016-03-10 17:10:18 +0000 |
commit | 0a27af918b9cfb7fc1605c66dfc70700be16fab5 (patch) | |
tree | 3c361913d997f0c634e031d98f491587e00ef08f /tests/test-string-output-visitor.c | |
parent | c619644067f98098dcdbc951e2dda79e97560afa (diff) | |
download | qemu-0a27af918b9cfb7fc1605c66dfc70700be16fab5.zip qemu-0a27af918b9cfb7fc1605c66dfc70700be16fab5.tar.gz qemu-0a27af918b9cfb7fc1605c66dfc70700be16fab5.tar.bz2 |
io: use bind() to check for IPv4/6 availability
Currently the test-io-channel-socket.c test uses getifaddrs
to see if an IPv4/6 address is present on any host NIC, as
a way to determine if IPv4/6 sockets can be used. This is
problematic because getifaddrs is not available on Win32.
Rather than testing indirectly via getifaddrs, just create
a socket and try to bind() to the loopback address instead.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'tests/test-string-output-visitor.c')
0 files changed, 0 insertions, 0 deletions