Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if.h
Show First 20 Lines • Show All 410 Lines • ▼ Show 20 Lines | |||||
#define ifr_phys ifr_ifru.ifru_phys /* physical wire */ | #define ifr_phys ifr_ifru.ifru_phys /* physical wire */ | ||||
#define ifr_media ifr_ifru.ifru_media /* physical media */ | #define ifr_media ifr_ifru.ifru_media /* physical media */ | ||||
#define ifr_data ifr_ifru.ifru_data /* for use by interface */ | #define ifr_data ifr_ifru.ifru_data /* for use by interface */ | ||||
#define ifr_reqcap ifr_ifru.ifru_cap[0] /* requested capabilities */ | #define ifr_reqcap ifr_ifru.ifru_cap[0] /* requested capabilities */ | ||||
#define ifr_curcap ifr_ifru.ifru_cap[1] /* current capabilities */ | #define ifr_curcap ifr_ifru.ifru_cap[1] /* current capabilities */ | ||||
#define ifr_index ifr_ifru.ifru_index /* interface index */ | #define ifr_index ifr_ifru.ifru_index /* interface index */ | ||||
#define ifr_fib ifr_ifru.ifru_fib /* interface fib */ | #define ifr_fib ifr_ifru.ifru_fib /* interface fib */ | ||||
#define ifr_vlan_pcp ifr_ifru.ifru_vlan_pcp /* VLAN priority */ | #define ifr_vlan_pcp ifr_ifru.ifru_vlan_pcp /* VLAN priority */ | ||||
#define ifr_lan_pcp ifr_ifru.ifru_vlan_pcp /* VLAN priority */ | |||||
}; | }; | ||||
#define _SIZEOF_ADDR_IFREQ(ifr) \ | #define _SIZEOF_ADDR_IFREQ(ifr) \ | ||||
((ifr).ifr_addr.sa_len > sizeof(struct sockaddr) ? \ | ((ifr).ifr_addr.sa_len > sizeof(struct sockaddr) ? \ | ||||
(sizeof(struct ifreq) - sizeof(struct sockaddr) + \ | (sizeof(struct ifreq) - sizeof(struct sockaddr) + \ | ||||
(ifr).ifr_addr.sa_len) : sizeof(struct ifreq)) | (ifr).ifr_addr.sa_len) : sizeof(struct ifreq)) | ||||
struct ifaliasreq { | struct ifaliasreq { | ||||
▲ Show 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | |||||
struct ifrsshash { | struct ifrsshash { | ||||
char ifrh_name[IFNAMSIZ]; /* if name, e.g. "en0" */ | char ifrh_name[IFNAMSIZ]; /* if name, e.g. "en0" */ | ||||
uint8_t ifrh_func; /* RSS_FUNC_ */ | uint8_t ifrh_func; /* RSS_FUNC_ */ | ||||
uint8_t ifrh_spare0; | uint8_t ifrh_spare0; | ||||
uint16_t ifrh_spare1; | uint16_t ifrh_spare1; | ||||
uint32_t ifrh_types; /* RSS_TYPE_ */ | uint32_t ifrh_types; /* RSS_TYPE_ */ | ||||
}; | }; | ||||
#define IFNET_PCP_NONE 0xff /* PCP disabled */ | |||||
#endif /* __BSD_VISIBLE */ | #endif /* __BSD_VISIBLE */ | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#ifdef MALLOC_DECLARE | #ifdef MALLOC_DECLARE | ||||
MALLOC_DECLARE(M_IFADDR); | MALLOC_DECLARE(M_IFADDR); | ||||
MALLOC_DECLARE(M_IFMADDR); | MALLOC_DECLARE(M_IFMADDR); | ||||
#endif | #endif | ||||
Show All 16 Lines |