Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route/route_tables.c
| Show First 20 Lines • Show All 188 Lines • ▼ Show 20 Lines | |||||
| static void | static void | ||||
| rtables_init(void) | rtables_init(void) | ||||
| { | { | ||||
| osd_method_t methods[PR_MAXMETHOD] = { | osd_method_t methods[PR_MAXMETHOD] = { | ||||
| [PR_METHOD_ATTACH] = rtables_check_proc_fib, | [PR_METHOD_ATTACH] = rtables_check_proc_fib, | ||||
| }; | }; | ||||
| osd_jail_register(rtables_prison_destructor, methods); | osd_jail_register(rtables_prison_destructor, methods); | ||||
| } | } | ||||
| SYSINIT(rtables_init, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, rtables_init, NULL); | SYSINIT(rtables_init, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, rtables_init); | ||||
| /* | /* | ||||
| * If required, copy interface routes from existing tables to the | * If required, copy interface routes from existing tables to the | ||||
| * newly-created routing table. | * newly-created routing table. | ||||
| */ | */ | ||||
| static void | static void | ||||
| populate_kernel_routes(struct rib_head **new_rt_tables, struct rib_head *rh) | populate_kernel_routes(struct rib_head **new_rt_tables, struct rib_head *rh) | ||||
| ▲ Show 20 Lines • Show All 205 Lines • Show Last 20 Lines | |||||