[libvirt] [PATCH 26/28] util: support setting peer for virNetDevIPInfo addresses

Laine Stump laine at laine.org
Wed Jun 22 17:37:25 UTC 2016


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




More information about the libvir-list mailing list