]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: allow selection of TCP address family
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 21 May 2015 14:51:28 +0000 (15:51 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 11 Jun 2015 11:11:18 +0000 (12:11 +0100)
commitd587704cc797735db794ac6f6cf9aa672746f94a
tree69fe24a01b81d7f63b4fa232f9ce0be3793c5c88
parentc0ef99525d55aecbcf84dea73ba6753c243680ca
rpc: allow selection of TCP address family

By default, getaddrinfo() will return addresses for both
IPv4 and IPv6 if both protocols are enabled, and so the
RPC code will listen/connect to both protocols too. There
may be cases where it is desirable to restrict this to
just one of the two protocols, so add an 'int family'
parameter to all the TCP related APIs.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
daemon/libvirtd.c
src/libxl/libxl_migration.c
src/qemu/qemu_migration.c
src/remote/remote_driver.c
src/rpc/virnetclient.c
src/rpc/virnetclient.h
src/rpc/virnetserverservice.c
src/rpc/virnetserverservice.h
src/rpc/virnetsocket.c
src/rpc/virnetsocket.h
tests/virnetsockettest.c