]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
adding warning for mtu ignoring 1607/head
authorShane Chen <ss1ha3tw@gmail.com>
Thu, 1 Jun 2017 05:36:41 +0000 (13:36 +0800)
committerShane Chen <ss1ha3tw@gmail.com>
Thu, 1 Jun 2017 06:22:39 +0000 (14:22 +0800)
Signed-off-by: Shane Chen <ss1ha3tw@gmail.com>
src/lxc/conf.c

index b65c4add844b543010b2e2f458b3870da364180c..0d3269d84386cdee9331a38a62f0c32c451ea9d7 100644 (file)
@@ -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.