From: Christian Brauner Date: Sat, 26 Aug 2017 22:36:40 +0000 (+0200) Subject: conf: non-functional changes X-Git-Tag: lxc-2.1.0~14^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89d09707b023ced7d3b54b880c312efa9cb6e63c;p=thirdparty%2Flxc.git conf: non-functional changes Signed-off-by: Christian Brauner --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 3a993c6e1..26cb42ab1 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -2455,7 +2455,10 @@ static int lxc_setup_netdev_in_child_namespaces(struct lxc_netdev *netdev) return -1; } - /* default: let the system to choose one interface name */ + /* Default: let the system to choose one interface name. + * When the IFLA_IFNAME attribute is passed something like "%d" + * netlink will replace the format specifier with an appropriate index. + */ if (!netdev->name) netdev->name = netdev->type == LXC_NET_PHYS ? netdev->link : "eth%d";