|
@@ -2647,6 +2647,15 @@ static int ip6_route_net_init(struct net *net)
|
|
|
net->ipv6.ip6_blk_hole_entry->u.dst.ops = net->ipv6.ip6_dst_ops;
|
|
|
#endif
|
|
|
|
|
|
+ net->ipv6.sysctl.flush_delay = 0;
|
|
|
+ net->ipv6.sysctl.ip6_rt_max_size = 4096;
|
|
|
+ net->ipv6.sysctl.ip6_rt_gc_min_interval = HZ / 2;
|
|
|
+ net->ipv6.sysctl.ip6_rt_gc_timeout = 60*HZ;
|
|
|
+ net->ipv6.sysctl.ip6_rt_gc_interval = 30*HZ;
|
|
|
+ net->ipv6.sysctl.ip6_rt_gc_elasticity = 9;
|
|
|
+ net->ipv6.sysctl.ip6_rt_mtu_expires = 10*60*HZ;
|
|
|
+ net->ipv6.sysctl.ip6_rt_min_advmss = IPV6_MIN_MTU - 20 - 40;
|
|
|
+
|
|
|
#ifdef CONFIG_PROC_FS
|
|
|
proc_net_fops_create(net, "ipv6_route", 0, &ipv6_route_proc_fops);
|
|
|
proc_net_fops_create(net, "rt6_stats", S_IRUGO, &rt6_stats_seq_fops);
|