On 10/21/2010 12:17 PM, Daniel P. Berrange wrote:
There was a typo in the IPv6 path of virSocketCheckNetmask which
caused it to never execute.
* src/util/network.c: s/AF_INET/AF_INET6/ in virSocketCheckNetmask
---
src/util/network.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/util/network.c b/src/util/network.c
index 4cb6bfe..de22ded 100644
--- a/src/util/network.c
+++ b/src/util/network.c
@@ -268,7 +268,7 @@ int virSocketCheckNetmask(virSocketAddrPtr addr1, virSocketAddrPtr
addr2,
return(0);
}
- } else if (addr1->data.stor.ss_family == AF_INET) {
+ } else if (addr1->data.stor.ss_family == AF_INET6) {
virIPv6Addr t1, t2, tm;
ACK.
--
Eric Blake eblake(a)redhat.com +1-801-349-2682
Libvirt virtualization library
http://libvirt.org