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 patch had been pushed earlier in commitcb20f989df
, but was reverted in commitcba06aea8d
because it had been accidentally pushed during the freeze for release 2.0.0)
This commit is contained in:
parent
98fa8f3ef6
commit
d83cac49e3
@ -920,7 +920,7 @@ virNetDevIPInfoAddToDev(const char *ifname,
|
||||
VIR_FREE(ipStr);
|
||||
goto cleanup;
|
||||
}
|
||||
if (virNetDevIPAddrAdd(ifname, &ip->address, NULL, prefix) < 0)
|
||||
if (virNetDevIPAddrAdd(ifname, &ip->address, &ip->peer, prefix) < 0)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user