]> git.proxmox.com Git - mirror_lxc.git/commitdiff
network: record created_name for instantiate_phys()
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 3 Jul 2019 19:48:20 +0000 (21:48 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 3 Jul 2019 19:48:20 +0000 (21:48 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/network.c

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