Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route.c
Show First 20 Lines • Show All 145 Lines • ▼ Show 20 Lines | if (x != NULL) | ||||
R_Free(x); | R_Free(x); | ||||
return (0); | return (0); | ||||
} | } | ||||
void | void | ||||
rt_table_destroy(struct rib_head *rh) | rt_table_destroy(struct rib_head *rh) | ||||
{ | { | ||||
RIB_WLOCK(rh); | |||||
rh->rib_dying = true; | |||||
RIB_WUNLOCK(rh); | |||||
fib_destroy_rib(rh); | |||||
tmproutes_destroy(rh); | tmproutes_destroy(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); | ||||
▲ Show 20 Lines • Show All 621 Lines • Show Last 20 Lines |