]> 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>
Sun, 27 Aug 2017 15:51:19 +0000 (17:51 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c

index 3a993c6e1f76bfed8a7da3690e90d836b7f449ba..26cb42ab19dea0ab149fe5998de409c0fa06b7c8 100644 (file)
@@ -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 "<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";