summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Cachereul <f.cachereul@alphalink.fr>2016-07-12 15:56:55 +0200
committerDmitry Kozlov <xeb@mail.ru>2016-07-14 20:33:12 +0300
commit52912d5b9980bb11b611d8668da9449e34830887 (patch)
tree92519aad927341764041d9c33ad96af359e496ca
parente0cca4344f70b9c9e23e3c6a7e17c8e93c765184 (diff)
downloadaccel-ppp-52912d5b9980bb11b611d8668da9449e34830887.tar.gz
accel-ppp-52912d5b9980bb11b611d8668da9449e34830887.zip
fix def_move_link
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 <f.cachereul@alphalink.fr>
-rw-r--r--accel-pppd/net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/net.c b/accel-pppd/net.c
index 0fc6e35..671279c 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;
}