]> xenbits.xensource.com Git - libvirt.git/commit
util: Update virNetDevGetIPAddress to get IPv6 addresses
authorLuyao Huang <lhuang@redhat.com>
Tue, 10 Mar 2015 00:04:58 +0000 (20:04 -0400)
committerJán Tomko <jtomko@redhat.com>
Fri, 10 Apr 2015 13:01:17 +0000 (15:01 +0200)
commit2605089c0450c47dc2e696c9be2bb75183d93b91
tree2d02d8c3d016f726d2a10f2c2493dc057c713d6c
parent61fee39967d078b0cc6efca15ece0f252f0f3bc3
util: Update virNetDevGetIPAddress to get IPv6 addresses

Add static virNetDevGetifaddrsAddress to attempt to get the interface
IP address. If getifaddrs is not supported, fall back to
virNetDevGetIPv4AddressIoctl to get the IP address.

This allows IPv6 addresses to be used for <listen type='network>
with device-backed networks.

https://bugzilla.redhat.com/show_bug.cgi?id=1192318

Signed-off-by: Luyao Huang <lhuang@redhat.com>
Signed-off-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/util/virnetdev.c