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:
committed by
David S. Miller
parent
721499e893
commit
53b7997fd5
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user