This will apply to any IP address setting that uses
virNetDevIPInfoAddToDev() (which so far is only the guest-side of LXC
type='ethernet' interfaces).
---
src/util/virnetdevip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/virnetdevip.c b/src/util/virnetdevip.c
index 5daeed5..36de9fb 100644
--- a/src/util/virnetdevip.c
+++ b/src/util/virnetdevip.c
@@ -941,7 +941,7 @@ virNetDevIPInfoAddToDev(const char *ifname,
ipStr);
goto cleanup;
}
- if (virNetDevIPAddrAdd(ifname, &ip->address, NULL, prefix) < 0)
+ if (virNetDevIPAddrAdd(ifname, &ip->address, &ip->peer, prefix)
< 0)
goto cleanup;
VIR_FREE(ipStr);
}
--
2.5.5