Commit 0f90d613 by Tycho Andersen

c/r: use --external instead of --veth-pair

--veth-pair has been deprecated as of 2.6, let's use the new --external instead. Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
parent 7fd5ab2a
......@@ -452,13 +452,13 @@ static void exec_criu(struct criu_opts *opts)
veth = n->priv.veth_attr.pair;
if (n->link)
ret = snprintf(buf, sizeof(buf), "%s=%s@%s", eth, veth, n->link);
ret = snprintf(buf, sizeof(buf), "veth[%s]:%s@%s", eth, veth, n->link);
else
ret = snprintf(buf, sizeof(buf), "%s=%s", eth, veth);
ret = snprintf(buf, sizeof(buf), "veth[%s]:%s", eth, veth);
if (ret < 0 || ret >= sizeof(buf))
goto err;
DECLARE_ARG("--veth-pair");
DECLARE_ARG("--external");
DECLARE_ARG(buf);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment