ipv6 netns: Make several "global" sysctl variables namespace aware.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
YOSHIFUJI Hideaki
2008-07-19 22:35:03 -07:00
committed by David S. Miller
parent 721499e893
commit 53b7997fd5
9 changed files with 21 additions and 16 deletions

View File

@@ -1038,7 +1038,7 @@ static int do_ipv6_getsockopt(struct sock *sk, int level, int optname,
dst_release(dst);
}
if (val < 0)
val = ipv6_devconf.hop_limit;
val = sock_net(sk)->ipv6.devconf_all->hop_limit;
break;
}