提交 cb20f989 编写于 作者: L Laine Stump

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).
上级 fe6a7789
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册