]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: support setting peer for virNetDevIPInfo addresses
authorLaine Stump <laine@laine.org>
Fri, 10 Jun 2016 16:37:37 +0000 (12:37 -0400)
committerLaine Stump <laine@laine.org>
Sun, 26 Jun 2016 23:33:10 +0000 (19:33 -0400)
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

index da92d5bbff69ca84b963b409e00653a9a8f331e5..0663e14e900d6c1360d2024a52f2d5c3f73fb7de 100644 (file)
@@ -918,7 +918,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);
     }