network: record created_name for instantiate_phys()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2019-07-03 21:48:20 +02:00
parent 75b074eea0
commit 61302ef7dc
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -666,6 +666,8 @@ static int instantiate_phys(struct lxc_handler *handler, struct lxc_netdev *netd
return -1; return -1;
} }
strlcpy(netdev->created_name, netdev->link, IFNAMSIZ);
/* /*
* Store the ifindex of the host's network device in the host's * Store the ifindex of the host's network device in the host's
* namespace. * namespace.