* [PATCH] ipv6 netns: init net is used to set bindv6only for new sock
@ 2008-06-05 10:37 Pavel Emelyanov
2008-06-09 22:53 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Pavel Emelyanov @ 2008-06-05 10:37 UTC (permalink / raw)
To: David Miller; +Cc: Linux Netdev List
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.
Fits both net-2.6 and net-next-26
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
---
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.
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ipv6 netns: init net is used to set bindv6only for new sock
2008-06-05 10:37 [PATCH] ipv6 netns: init net is used to set bindv6only for new sock Pavel Emelyanov
@ 2008-06-09 22:53 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-06-09 22:53 UTC (permalink / raw)
To: xemul; +Cc: netdev
From: Pavel Emelyanov <xemul@openvz.org>
Date: Thu, 05 Jun 2008 14:37:30 +0400
> 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.
>
> Fits both net-2.6 and net-next-26
>
> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Applied to net-2.6, thanks Pavel.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-09 22:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-05 10:37 [PATCH] ipv6 netns: init net is used to set bindv6only for new sock Pavel Emelyanov
2008-06-09 22:53 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).