Skip to content

Commit

Permalink
criu: detect veth name
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Adrian Reber <areber@redhat.com>
  • Loading branch information
Christian Brauner committed Dec 17, 2017
1 parent b1ba7b0 commit 84c29b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lxc/criu.c
Expand Up @@ -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)
Expand Down

0 comments on commit 84c29b8

Please sign in to comment.