diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-06-10 00:53:30 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-10 00:53:30 +0200 |
commit | 2e761e0532a784816e7e822dbaaece8c5d4be14d (patch) | |
tree | 9513ffae037602a5736c8a8b0aabc5b764631c98 /net/ipv6/af_inet6.c | |
parent | irda: net/irda build fix: mcs7780 (diff) | |
download | linux-2e761e0532a784816e7e822dbaaece8c5d4be14d.tar.xz linux-2e761e0532a784816e7e822dbaaece8c5d4be14d.zip |
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 '')
-rw-r--r-- | net/ipv6/af_inet6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index 3c6aafb02183..e84b3fd17fb4 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. |