Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route/nhgrp_var.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
#define mpath_hash_obj(_obj) (hash_nhgrp(_obj)) | #define mpath_hash_obj(_obj) (hash_nhgrp(_obj)) | ||||
/* compare two objects */ | /* compare two objects */ | ||||
#define mpath_cmp(_one, _two) (cmp_nhgrp(_one, _two)) | #define mpath_cmp(_one, _two) (cmp_nhgrp(_one, _two)) | ||||
/* next object accessor */ | /* next object accessor */ | ||||
#define mpath_next(_obj) (_obj)->nhg_priv_next | #define mpath_next(_obj) (_obj)->nhg_priv_next | ||||
struct nhgrp_priv { | struct nhgrp_priv { | ||||
uint32_t nhg_idx; | uint32_t nhg_idx; | ||||
uint32_t nhg_uidx; | |||||
uint8_t nhg_nh_count; /* number of items in nh_weights */ | uint8_t nhg_nh_count; /* number of items in nh_weights */ | ||||
uint8_t nhg_spare[3]; | uint8_t nhg_spare[3]; | ||||
u_int nhg_refcount; /* use refcount */ | u_int nhg_refcount; /* use refcount */ | ||||
u_int nhg_linked; /* refcount(9), == 2 if linked to the list */ | u_int nhg_linked; /* refcount(9), == 2 if linked to the list */ | ||||
struct nh_control *nh_control; /* parent control structure */ | struct nh_control *nh_control; /* parent control structure */ | ||||
struct nhgrp_priv *nhg_priv_next; | struct nhgrp_priv *nhg_priv_next; | ||||
struct nhgrp_object *nhg; | struct nhgrp_object *nhg; | ||||
struct epoch_context nhg_epoch_ctx; /* epoch data for nhop */ | struct epoch_context nhg_epoch_ctx; /* epoch data for nhop */ | ||||
Show All 15 Lines |