summary refs log tree commit diff stats
path: root/migration/qemu-file-unix.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2016-03-08 11:39:36 +0000
committerDaniel P. Berrange <berrange@redhat.com>2016-03-10 17:10:18 +0000
commit0a27af918b9cfb7fc1605c66dfc70700be16fab5 (patch)
tree3c361913d997f0c634e031d98f491587e00ef08f /migration/qemu-file-unix.c
parentc619644067f98098dcdbc951e2dda79e97560afa (diff)
downloadfocaccia-qemu-0a27af918b9cfb7fc1605c66dfc70700be16fab5.tar.gz
focaccia-qemu-0a27af918b9cfb7fc1605c66dfc70700be16fab5.zip
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 'migration/qemu-file-unix.c')
0 files changed, 0 insertions, 0 deletions