summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-06-09 15:53:30 -0700
committerDavid S. Miller <davem@davemloft.net>2008-06-09 15:53:30 -0700
commit2e761e0532a784816e7e822dbaaece8c5d4be14d (patch)
tree9513ffae037602a5736c8a8b0aabc5b764631c98 /net
parent1420a4faee7086b6811b4a1f0672e32b5a6df80e (diff)
downloadop-kernel-dev-2e761e0532a784816e7e822dbaaece8c5d4be14d.zip
op-kernel-dev-2e761e0532a784816e7e822dbaaece8c5d4be14d.tar.gz
ipv6 netns: init net is used to set bindv6only for new sock
The bindv6only is tuned via sysctl. It is already on a struct net and per-net sysctls allow for its modification (ipv6_sysctl_net_init). Despite this the value configured in the init net is used for the rest of them. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/af_inet6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c
index 3c6aafb..e84b3fd 100644
--- a/net/ipv6/af_inet6.c
+++ b/net/ipv6/af_inet6.c
@@ -191,7 +191,7 @@ lookup_protocol:
np->mcast_hops = -1;
np->mc_loop = 1;
np->pmtudisc = IPV6_PMTUDISC_WANT;
- np->ipv6only = init_net.ipv6.sysctl.bindv6only;
+ np->ipv6only = net->ipv6.sysctl.bindv6only;
/* Init the ipv4 part of the socket since we can have sockets
* using v6 API for ipv4.
OpenPOWER on IntegriCloud