mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00: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:
parent
fe6a77898a
commit
cb20f989df
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user