]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
criu: detect veth name
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 27 Nov 2017 11:28:44 +0000 (12:28 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 17 Dec 2017 14:27:59 +0000 (15:27 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Adrian Reber <areber@redhat.com>
src/lxc/criu.c

index 005e46c3188c9afa7e9d58bfa1148dadc0e6a4c4..8447cd37caea6eb737cb1af9fd0e8fa23eb58cfa 100644 (file)
@@ -563,6 +563,8 @@ static void exec_criu(struct criu_opts *opts)
                        switch (n->type) {
                        case LXC_NET_VETH:
                                veth = n->priv.veth_attr.pair;
+                               if (veth[0] == '\0')
+                                       veth = n->priv.veth_attr.veth1;
 
                                if (n->link[0] != '\0') {
                                        if (external_not_veth)