Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_var.h
Show First 20 Lines • Show All 336 Lines • ▼ Show 20 Lines | struct ifnet { | ||||
u_short if_idxgen; /* ... and its generation count */ | u_short if_idxgen; /* ... and its generation count */ | ||||
char if_xname[IFNAMSIZ]; /* external name (name + unit) */ | char if_xname[IFNAMSIZ]; /* external name (name + unit) */ | ||||
char *if_description; /* interface description */ | char *if_description; /* interface description */ | ||||
/* Variable fields that are touched by the stack and drivers. */ | /* Variable fields that are touched by the stack and drivers. */ | ||||
int if_flags; /* up/down, broadcast, etc. */ | int if_flags; /* up/down, broadcast, etc. */ | ||||
int if_drv_flags; /* driver-managed status flags */ | int if_drv_flags; /* driver-managed status flags */ | ||||
int if_capabilities; /* interface features & capabilities */ | int if_capabilities; /* interface features & capabilities */ | ||||
int if_capabilities2; /* part 2 */ | |||||
int if_capenable; /* enabled features & capabilities */ | int if_capenable; /* enabled features & capabilities */ | ||||
int if_capenable2; /* part 2 */ | |||||
void *if_linkmib; /* link-type-specific MIB data */ | void *if_linkmib; /* link-type-specific MIB data */ | ||||
size_t if_linkmiblen; /* length of above data */ | size_t if_linkmiblen; /* length of above data */ | ||||
u_int if_refcount; /* reference count */ | u_int if_refcount; /* reference count */ | ||||
/* These fields are shared with struct if_data. */ | /* These fields are shared with struct if_data. */ | ||||
uint8_t if_type; /* ethernet, tokenring, etc */ | uint8_t if_type; /* ethernet, tokenring, etc */ | ||||
uint8_t if_addrlen; /* media address length */ | uint8_t if_addrlen; /* media address length */ | ||||
uint8_t if_hdrlen; /* media header length */ | uint8_t if_hdrlen; /* media header length */ | ||||
▲ Show 20 Lines • Show All 470 Lines • Show Last 20 Lines |