mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-04 14:55:36 +00:00
adding warning for mtu ignoring
Signed-off-by: Shane Chen <ss1ha3tw@gmail.com>
This commit is contained in:
parent
03931c9e18
commit
72ccbbe1aa
@ -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