route.c (7e796c3fefa8b17b30e7252886ae8cffacd2b9ef) | route.c (96d3265fc4f1b68e60a5ae7a51b97463cc8c6702) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Linux INET6 implementation 4 * FIB front-end. 5 * 6 * Authors: 7 * Pedro Roque <roque@di.fc.ul.pt> 8 */ --- 6318 unchanged lines hidden (view full) --- 6327 void *buffer, size_t *lenp, loff_t *ppos) 6328{ 6329 struct net *net; 6330 int delay; 6331 int ret; 6332 if (!write) 6333 return -EINVAL; 6334 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Linux INET6 implementation 4 * FIB front-end. 5 * 6 * Authors: 7 * Pedro Roque <roque@di.fc.ul.pt> 8 */ --- 6318 unchanged lines hidden (view full) --- 6327 void *buffer, size_t *lenp, loff_t *ppos) 6328{ 6329 struct net *net; 6330 int delay; 6331 int ret; 6332 if (!write) 6333 return -EINVAL; 6334 |
6335 net = (struct net *)ctl->extra1; 6336 delay = net->ipv6.sysctl.flush_delay; | |
6337 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); 6338 if (ret) 6339 return ret; 6340 | 6335 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); 6336 if (ret) 6337 return ret; 6338 |
6339 net = (struct net *)ctl->extra1; 6340 delay = net->ipv6.sysctl.flush_delay; |
|
6341 fib6_run_gc(delay <= 0 ? 0 : (unsigned long)delay, net, delay > 0); 6342 return 0; 6343} 6344 6345static struct ctl_table ipv6_route_table_template[] = { 6346 { 6347 .procname = "max_size", 6348 .data = &init_net.ipv6.sysctl.ip6_rt_max_size, --- 448 unchanged lines hidden --- | 6341 fib6_run_gc(delay <= 0 ? 0 : (unsigned long)delay, net, delay > 0); 6342 return 0; 6343} 6344 6345static struct ctl_table ipv6_route_table_template[] = { 6346 { 6347 .procname = "max_size", 6348 .data = &init_net.ipv6.sysctl.ip6_rt_max_size, --- 448 unchanged lines hidden --- |