]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: non-functional changes
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 26 Aug 2017 22:36:40 +0000 (00:36 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 29 Aug 2017 20:54:47 +0000 (22:54 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c

index 8a11ff345984020a894b1fc35422d6d1ac1571b4..afc1af9f56ec731d0ad334c6197b2b379a8a6128 100644 (file)
@@ -2402,7 +2402,10 @@ static int setup_netdev(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 "<prefix>%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";