[lxc-devel] [lxc/master] adding warning for mtu ignoring

ss1h2a3tw on Github lxc-bot at linuxcontainers.org
Thu Jun 1 05:41:49 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 496 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170601/6e92ea87/attachment.bin>
-------------- next part --------------
From eba7822415bdea9a3a9fb88eb8440bb6a77a78f5 Mon Sep 17 00:00:00 2001
From: Shane Chen <ss1ha3tw at gmail.com>
Date: Thu, 1 Jun 2017 13:36:41 +0800
Subject: [PATCH] adding warning for mtu ignoring

Signed-off-by: Shane Chen <ss1ha3tw at gmail.com>
---
 src/lxc/conf.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index b65c4add8..d25a6525d 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)
+				WARN("ignoring MTU due to unprivileged");
 			if (unpriv_assign_nic(lxcpath, lxcname, netdev, pid))
 				return -1;
 			// lxc-user-nic has moved the nic to the new ns.


More information about the lxc-devel mailing list