From 52912d5b9980bb11b611d8668da9449e34830887 Mon Sep 17 00:00:00 2001 From: François Cachereul Date: Tue, 12 Jul 2016 15:56:55 +0200 Subject: fix def_move_link MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Do not know how this could work. It make more sense to move an interface from its original namespace not from its destination. Signed-off-by: François Cachereul --- accel-pppd/net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accel-pppd/net.c b/accel-pppd/net.c index 0fc6e354..671279cc 100644 --- a/accel-pppd/net.c +++ b/accel-pppd/net.c @@ -171,7 +171,7 @@ static int def_move_link(struct ap_net *new_net, int ifindex) struct ifinfomsg i; char buf[1024]; } req; - struct rtnl_handle *rth = new_net->rtnl_get(); + struct rtnl_handle *rth = net->rtnl_get(); struct kern_net *n = container_of(new_net, typeof(*n), net); int r = 0; @@ -196,7 +196,7 @@ static int def_move_link(struct ap_net *new_net, int ifindex) //setns(def_ns_fd, CLONE_NEWNET); - new_net->rtnl_put(rth); + net->rtnl_put(rth); return r; } -- cgit v1.2.3