diff options
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r-- | net/ipv6/route.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index b80ef5784207..0c7382f4fb85 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -2409,7 +2409,7 @@ int ipv6_sysctl_rtcache_flush(ctl_table *ctl, int write, struct file * filp, | |||
2409 | return -EINVAL; | 2409 | return -EINVAL; |
2410 | } | 2410 | } |
2411 | 2411 | ||
2412 | ctl_table ipv6_route_table[] = { | 2412 | ctl_table ipv6_route_table_template[] = { |
2413 | { | 2413 | { |
2414 | .procname = "flush", | 2414 | .procname = "flush", |
2415 | .data = &flush_delay, | 2415 | .data = &flush_delay, |
@@ -2499,6 +2499,15 @@ ctl_table ipv6_route_table[] = { | |||
2499 | { .ctl_name = 0 } | 2499 | { .ctl_name = 0 } |
2500 | }; | 2500 | }; |
2501 | 2501 | ||
2502 | struct ctl_table *ipv6_route_sysctl_init(struct net *net) | ||
2503 | { | ||
2504 | struct ctl_table *table; | ||
2505 | |||
2506 | table = kmemdup(ipv6_route_table_template, | ||
2507 | sizeof(ipv6_route_table_template), | ||
2508 | GFP_KERNEL); | ||
2509 | return table; | ||
2510 | } | ||
2502 | #endif | 2511 | #endif |
2503 | 2512 | ||
2504 | int __init ip6_route_init(void) | 2513 | int __init ip6_route_init(void) |