Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route/route_ctl.h
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | |||||
const struct rtentry *rib_lookup_prefix(uint32_t fibnum, int family, | const struct rtentry *rib_lookup_prefix(uint32_t fibnum, int family, | ||||
const struct sockaddr *dst, const struct sockaddr *netmask, | const struct sockaddr *dst, const struct sockaddr *netmask, | ||||
struct route_nhop_data *rnd); | struct route_nhop_data *rnd); | ||||
const struct rtentry *rib_lookup_lpm(uint32_t fibnum, int family, | const struct rtentry *rib_lookup_lpm(uint32_t fibnum, int family, | ||||
const struct sockaddr *dst, struct route_nhop_data *rnd); | const struct sockaddr *dst, struct route_nhop_data *rnd); | ||||
/* rtentry accessors */ | /* rtentry accessors */ | ||||
bool rt_is_host(const struct rtentry *rt); | bool rt_is_host(const struct rtentry *rt); | ||||
sa_family_t rt_get_family(const struct rtentry *); | |||||
struct nhop_object *rt_get_raw_nhop(const struct rtentry *rt); | struct nhop_object *rt_get_raw_nhop(const struct rtentry *rt); | ||||
#ifdef INET | #ifdef INET | ||||
struct in_addr; | struct in_addr; | ||||
void rt_get_inet_prefix_plen(const struct rtentry *rt, struct in_addr *paddr, | void rt_get_inet_prefix_plen(const struct rtentry *rt, struct in_addr *paddr, | ||||
int *plen, uint32_t *pscopeid); | int *plen, uint32_t *pscopeid); | ||||
void rt_get_inet_prefix_pmask(const struct rtentry *rt, struct in_addr *paddr, | void rt_get_inet_prefix_pmask(const struct rtentry *rt, struct in_addr *paddr, | ||||
struct in_addr *pmask, uint32_t *pscopeid); | struct in_addr *pmask, uint32_t *pscopeid); | ||||
#endif | #endif | ||||
Show All 37 Lines |