diff options
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r-- | net/ipv6/route.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index e8b241cb60bc..1b15e1708409 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -2505,6 +2505,20 @@ struct ctl_table *ipv6_route_sysctl_init(struct net *net) | |||
2505 | table = kmemdup(ipv6_route_table_template, | 2505 | table = kmemdup(ipv6_route_table_template, |
2506 | sizeof(ipv6_route_table_template), | 2506 | sizeof(ipv6_route_table_template), |
2507 | GFP_KERNEL); | 2507 | GFP_KERNEL); |
2508 | |||
2509 | if (table) { | ||
2510 | table[0].data = &net->ipv6.sysctl.flush_delay; | ||
2511 | /* table[1].data will be handled when we have | ||
2512 | routes per namespace */ | ||
2513 | table[2].data = &net->ipv6.sysctl.ip6_rt_max_size; | ||
2514 | table[3].data = &net->ipv6.sysctl.ip6_rt_gc_min_interval; | ||
2515 | table[4].data = &net->ipv6.sysctl.ip6_rt_gc_timeout; | ||
2516 | table[5].data = &net->ipv6.sysctl.ip6_rt_gc_interval; | ||
2517 | table[6].data = &net->ipv6.sysctl.ip6_rt_gc_elasticity; | ||
2518 | table[7].data = &net->ipv6.sysctl.ip6_rt_mtu_expires; | ||
2519 | table[8].data = &net->ipv6.sysctl.ip6_rt_min_advmss; | ||
2520 | } | ||
2521 | |||
2508 | return table; | 2522 | return table; |
2509 | } | 2523 | } |
2510 | #endif | 2524 | #endif |