Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route/route_rtentry.c
Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
struct nhop_object * | struct nhop_object * | ||||
rt_get_raw_nhop(const struct rtentry *rt) | rt_get_raw_nhop(const struct rtentry *rt) | ||||
{ | { | ||||
return (rt->rt_nhop); | return (rt->rt_nhop); | ||||
} | } | ||||
void | |||||
rt_get_rnd(const struct rtentry *rt, struct route_nhop_data *rnd) | |||||
{ | |||||
rnd->rnd_nhop = rt->rt_nhop; | |||||
rnd->rnd_weight = rt->rt_weight; | |||||
} | |||||
#ifdef INET | #ifdef INET | ||||
/* | /* | ||||
* Stores IPv4 address and prefix length of @rt inside | * Stores IPv4 address and prefix length of @rt inside | ||||
* @paddr and @plen. | * @paddr and @plen. | ||||
* @pscopeid is currently always set to 0. | * @pscopeid is currently always set to 0. | ||||
*/ | */ | ||||
void | void | ||||
rt_get_inet_prefix_plen(const struct rtentry *rt, struct in_addr *paddr, | rt_get_inet_prefix_plen(const struct rtentry *rt, struct in_addr *paddr, | ||||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |