From 72ccbbe1aa7cb1f4b629d4368feefbe5e3b3e20c Mon Sep 17 00:00:00 2001 From: Shane Chen Date: Thu, 1 Jun 2017 13:36:41 +0800 Subject: [PATCH] adding warning for mtu ignoring Signed-off-by: Shane Chen --- src/lxc/conf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index b65c4add8..0d3269d84 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -3351,6 +3351,8 @@ int lxc_assign_network(const char *lxcpath, char *lxcname, netdev = iterator->elem; 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)) return -1; // lxc-user-nic has moved the nic to the new ns.