From: Shane Chen Date: Thu, 1 Jun 2017 05:36:41 +0000 (+0800) Subject: adding warning for mtu ignoring X-Git-Tag: lxc-1.0.11~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f561a9f885452638f7245cf44e73990ff7c9317;p=thirdparty%2Flxc.git adding warning for mtu ignoring Signed-off-by: Shane Chen --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 1057ac971..d89775619 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -3549,6 +3549,10 @@ int lxc_assign_network(struct lxc_list *network, pid_t pid) if (netdev->type == LXC_NET_VETH && !am_root) { if (unpriv_assign_nic(netdev, pid)) return -1; + + if (netdev->mtu) + INFO("mtu ignored due to insufficient privilege"); + // lxc-user-nic has moved the nic to the new ns. // unpriv_assign_nic() fills in netdev->name. // netdev->ifindex will be filed in at setup_netdev.