ipv6: make fib6 serial number per namespace
Try to reduce number of possible fn_sernum mutation by constraining them
to their namespace.
Also remove rt_genid which I forgot to remove in 705f1c869d
("ipv6:
remove rt6i_genid").
Cc: YOSHIFUJI Hideaki <hideaki@yoshifuji.org>
Cc: Martin Lau <kafai@fb.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
c8c4d42a6b
commit
812918c464
@@ -766,7 +766,7 @@ static int __net_init inet6_net_init(struct net *net)
|
||||
net->ipv6.sysctl.icmpv6_time = 1*HZ;
|
||||
net->ipv6.sysctl.flowlabel_consistency = 1;
|
||||
net->ipv6.sysctl.auto_flowlabels = 0;
|
||||
atomic_set(&net->ipv6.rt_genid, 0);
|
||||
atomic_set(&net->ipv6.fib6_sernum, 1);
|
||||
|
||||
err = ipv6_init_mibs(net);
|
||||
if (err)
|
||||
|
Reference in New Issue
Block a user