conf: non-functional changes

parent 04ba27e0
...@@ -2455,7 +2455,10 @@ static int lxc_setup_netdev_in_child_namespaces(struct lxc_netdev *netdev) ...@@ -2455,7 +2455,10 @@ static int lxc_setup_netdev_in_child_namespaces(struct lxc_netdev *netdev)
return -1; 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) if (!netdev->name)
netdev->name = netdev->type == LXC_NET_PHYS ? netdev->name = netdev->type == LXC_NET_PHYS ?
netdev->link : "eth%d"; netdev->link : "eth%d";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment