mirror of
git://github.com/lxc/lxc
synced 2025-08-31 23:54:41 +00:00
conf: non-functional changes
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
@@ -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";
|
||||||
|
Reference in New Issue
Block a user