Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route/route_ctl.c
Show First 20 Lines • Show All 1,520 Lines • ▼ Show 20 Lines | rt_delete_unconditional(struct radix_node *rn, void *arg) | ||||
rn = rnh->rnh_deladdr(rt_key(rt), rt_mask(rt), &rnh->head); | rn = rnh->rnh_deladdr(rt_key(rt), rt_mask(rt), &rnh->head); | ||||
if (RNTORT(rn) == rt) | if (RNTORT(rn) == rt) | ||||
rt_free(rt); | rt_free(rt); | ||||
return (0); | return (0); | ||||
} | } | ||||
struct rtentry * | |||||
rt_get_parent(struct rib_head *rh, struct rtentry *rt) | |||||
{ | |||||
return (RNTORT(rn_get_parent(&rh->head, (struct radix_node *)rt))); | |||||
} | |||||
/* | /* | ||||
* Removes all routes from the routing table without executing notifications. | * Removes all routes from the routing table without executing notifications. | ||||
* rtentres will be removed after the end of a current epoch. | * rtentres will be removed after the end of a current epoch. | ||||
*/ | */ | ||||
static void | static void | ||||
rib_flush_routes(struct rib_head *rnh) | rib_flush_routes(struct rib_head *rnh) | ||||
{ | { | ||||
RIB_WLOCK(rnh); | RIB_WLOCK(rnh); | ||||
Show All 29 Lines |