Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route/nhop_var.h
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | |||||
struct nhop_object; | struct nhop_object; | ||||
struct nhop_priv { | struct nhop_priv { | ||||
/* nhop lookup comparison start */ | /* nhop lookup comparison start */ | ||||
uint8_t nh_upper_family;/* address family of the lookup */ | uint8_t nh_upper_family;/* address family of the lookup */ | ||||
uint8_t nh_neigh_family;/* neighbor address family */ | uint8_t nh_neigh_family;/* neighbor address family */ | ||||
uint16_t nh_type; /* nexthop type */ | uint16_t nh_type; /* nexthop type */ | ||||
uint32_t rt_flags; /* routing flags for the control plane */ | uint32_t rt_flags; /* routing flags for the control plane */ | ||||
uint32_t nh_expire; /* path expiration time */ | uint32_t nh_expire; /* path expiration time */ | ||||
uint32_t nh_uidx; /* userland-provided index */ | |||||
/* nhop lookup comparison end */ | /* nhop lookup comparison end */ | ||||
uint32_t nh_idx; /* nexthop index */ | uint32_t nh_idx; /* nexthop index */ | ||||
uint32_t nh_fibnum; /* nexthop fib */ | uint32_t nh_fibnum; /* nexthop fib */ | ||||
void *cb_func; /* function handling additional rewrite caps */ | void *cb_func; /* function handling additional rewrite caps */ | ||||
u_int nh_refcnt; /* number of references, refcount(9) */ | u_int nh_refcnt; /* number of references, refcount(9) */ | ||||
u_int nh_linked; /* refcount(9), == 2 if linked to the list */ | u_int nh_linked; /* refcount(9), == 2 if linked to the list */ | ||||
int nh_finalized; /* non-zero if finalized() was called */ | int nh_finalized; /* non-zero if finalized() was called */ | ||||
struct nhop_object *nh; /* backreference to the dataplane nhop */ | struct nhop_object *nh; /* backreference to the dataplane nhop */ | ||||
Show All 22 Lines |