Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route/nhop_ctl.c
Show First 20 Lines • Show All 774 Lines • ▼ Show 20 Lines | |||||
uint32_t | uint32_t | ||||
nhop_get_idx(const struct nhop_object *nh) | nhop_get_idx(const struct nhop_object *nh) | ||||
{ | { | ||||
return (nh->nh_priv->nh_idx); | return (nh->nh_priv->nh_idx); | ||||
} | } | ||||
uint32_t | |||||
nhop_get_uidx(const struct nhop_object *nh) | |||||
{ | |||||
return (nh->nh_priv->nh_uidx); | |||||
} | |||||
void | |||||
nhop_set_uidx(struct nhop_object *nh, uint32_t uidx) | |||||
{ | |||||
nh->nh_priv->nh_uidx = uidx; | |||||
} | |||||
enum nhop_type | enum nhop_type | ||||
nhop_get_type(const struct nhop_object *nh) | nhop_get_type(const struct nhop_object *nh) | ||||
{ | { | ||||
return (nh->nh_priv->nh_type); | return (nh->nh_priv->nh_type); | ||||
} | } | ||||
void | void | ||||
▲ Show 20 Lines • Show All 333 Lines • Show Last 20 Lines |