diff options
author | xebd <xeb@mail.ru> | 2022-07-27 12:36:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 12:36:44 +0300 |
commit | 61ba3af1d1e204df000fd78add1dbe1139eb5df7 (patch) | |
tree | f96d8eb95d9981073553ecebea1d7f5096b8679a /accel-pppd/ipv6/nd.c | |
parent | 847ccb49a7e0958d778fc772a266a0f8695f591c (diff) | |
parent | a184c94f3f8c8e8bc56ebd9527646567a06e8e59 (diff) | |
download | accel-ppp-61ba3af1d1e204df000fd78add1dbe1139eb5df7.tar.gz accel-ppp-61ba3af1d1e204df000fd78add1dbe1139eb5df7.zip |
Merge pull request #54 from telirebarry/fix-ipv6-netns
Fix ipv6 inside netns
Diffstat (limited to 'accel-pppd/ipv6/nd.c')
-rw-r--r-- | accel-pppd/ipv6/nd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/ipv6/nd.c b/accel-pppd/ipv6/nd.c index 943ed6d3..297e4d63 100644 --- a/accel-pppd/ipv6/nd.c +++ b/accel-pppd/ipv6/nd.c @@ -284,7 +284,9 @@ static int ipv6_nd_start(struct ap_session *ses) int val; struct ipv6_nd_handler_t *h; + net->enter_ns(); sock = net->socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6); + net->exit_ns(); if (sock < 0) { log_ppp_error("socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6): %s\n", strerror(errno)); |