[libvirt] [PATCH 1/3] rpc: allow selection of TCP address family

Martin Kletzander mkletzan at redhat.com
Mon Jun 8 13:30:09 UTC 2015


On Fri, Jun 05, 2015 at 09:47:43AM +0100, Daniel P. Berrange wrote:
>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 at redhat.com>
>---
> daemon/libvirtd.c             |  2 ++
> src/libxl/libxl_migration.c   |  8 ++++++--
> src/qemu/qemu_migration.c     |  4 +++-
> src/remote/remote_driver.c    |  3 ++-
> src/rpc/virnetclient.c        | 12 +++++++++---
> src/rpc/virnetclient.h        |  4 +++-
> src/rpc/virnetserverservice.c |  2 ++
> src/rpc/virnetserverservice.h |  1 +
> src/rpc/virnetsocket.c        |  8 +++++++-
> src/rpc/virnetsocket.h        |  3 +++
> tests/virnetsockettest.c      |  8 ++++++--
> 11 files changed, 44 insertions(+), 11 deletions(-)
>

ACK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150608/ae5fc884/attachment-0001.sig>


More information about the libvir-list mailing list