mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-07 22:39:41 +00:00
Merge pull request #1607 from ss1h2a3tw/master
adding warning for mtu ignoring
This commit is contained in:
commit
1573a51475
@ -3351,6 +3351,8 @@ int lxc_assign_network(const char *lxcpath, char *lxcname,
|
|||||||
netdev = iterator->elem;
|
netdev = iterator->elem;
|
||||||
|
|
||||||
if (netdev->type == LXC_NET_VETH && !am_root) {
|
if (netdev->type == LXC_NET_VETH && !am_root) {
|
||||||
|
if (netdev->mtu)
|
||||||
|
INFO("mtu ignored due to insufficient privilege");
|
||||||
if (unpriv_assign_nic(lxcpath, lxcname, netdev, pid))
|
if (unpriv_assign_nic(lxcpath, lxcname, netdev, pid))
|
||||||
return -1;
|
return -1;
|
||||||
// lxc-user-nic has moved the nic to the new ns.
|
// lxc-user-nic has moved the nic to the new ns.
|
||||||
|
Loading…
Reference in New Issue
Block a user