2
0
mirror of git://github.com/lxc/lxc synced 2025-08-31 01:09:35 +00:00

conf: non-functional changes

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner
2017-08-27 00:36:40 +02:00
parent 04ba27e0dc
commit 89d09707b0

View 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";