Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route.c
Show First 20 Lines • Show All 155 Lines • ▼ Show 20 Lines | rt_table_destroy(struct rib_head *rh) | ||||
RIB_WUNLOCK(rh); | RIB_WUNLOCK(rh); | ||||
#ifdef FIB_ALGO | #ifdef FIB_ALGO | ||||
fib_destroy_rib(rh); | fib_destroy_rib(rh); | ||||
#endif | #endif | ||||
tmproutes_destroy(rh); | tmproutes_destroy(rh); | ||||
rib_flush_routes(rh); | |||||
rn_walktree(&rh->rmhead.head, rt_freeentry, &rh->rmhead.head); | rn_walktree(&rh->rmhead.head, rt_freeentry, &rh->rmhead.head); | ||||
nhops_destroy_rib(rh); | nhops_destroy_rib(rh); | ||||
rib_destroy_subscriptions(rh); | rib_destroy_subscriptions(rh); | ||||
/* Assume table is already empty */ | /* Assume table is already empty */ | ||||
RIB_LOCK_DESTROY(rh); | RIB_LOCK_DESTROY(rh); | ||||
▲ Show 20 Lines • Show All 591 Lines • Show Last 20 Lines |