mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-10 04:58:12 -05:00
util: support setting peer for virNetDevIPInfo addresses
This will apply to any IP address setting that uses virNetDevIPInfoAddToDev() (which so far is only the guest-side of LXC type='ethernet' interfaces).
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user