diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2016-07-14 20:33:48 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2016-07-14 20:33:48 +0300 |
commit | 69ddf69d08072819deb3adde2be28f613f92cac3 (patch) | |
tree | 6a2827edaa88d5f92d796da4ad173b72c0dc7ba1 | |
parent | 52912d5b9980bb11b611d8668da9449e34830887 (diff) | |
download | accel-ppp-69ddf69d08072819deb3adde2be28f613f92cac3.tar.gz accel-ppp-69ddf69d08072819deb3adde2be28f613f92cac3.zip |
net: code cleanup
-rw-r--r-- | accel-pppd/net.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/accel-pppd/net.c b/accel-pppd/net.c index 671279cc..43b4e6e5 100644 --- a/accel-pppd/net.c +++ b/accel-pppd/net.c @@ -188,14 +188,9 @@ static int def_move_link(struct ap_net *new_net, int ifindex) addattr_l(&req.n, 4096, IFLA_NET_NS_FD, &n->ns_fd, sizeof(n->ns_fd)); - //if (setns(n->ns_fd, CLONE_NEWNET)) - //perror("setns"); - if (rtnl_talk(rth, &req.n, 0, 0, NULL, NULL, NULL, 0) < 0) r = -1; - //setns(def_ns_fd, CLONE_NEWNET); - net->rtnl_put(rth); return r; |