mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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);
|
ipStr);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
if (virNetDevIPAddrAdd(ifname, &ip->address, NULL, prefix) < 0)
|
if (virNetDevIPAddrAdd(ifname, &ip->address, &ip->peer, prefix) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
VIR_FREE(ipStr);
|
VIR_FREE(ipStr);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user