Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/in_pcb.h
Show First 20 Lines • Show All 357 Lines • ▼ Show 20 Lines | |||||
* Legend: | * Legend: | ||||
* (s) - used by userland utilities in src | * (s) - used by userland utilities in src | ||||
* (p) - used by utilities in ports | * (p) - used by utilities in ports | ||||
* (3) - is known to be used by third party software not in ports | * (3) - is known to be used by third party software not in ports | ||||
* (n) - no known usage | * (n) - no known usage | ||||
*/ | */ | ||||
#ifdef _SYS_SOCKETVAR_H_ | #ifdef _SYS_SOCKETVAR_H_ | ||||
struct xinpcb { | struct xinpcb { | ||||
size_t xi_len; /* length of this structure */ | uint64_t xi_len; /* length of this structure */ | ||||
struct xsocket xi_socket; /* (s,p) */ | struct xsocket xi_socket; /* (s,p) */ | ||||
struct in_conninfo inp_inc; /* (s,p) */ | struct in_conninfo inp_inc; /* (s,p) */ | ||||
uint64_t inp_gencnt; /* (s,p) */ | uint64_t inp_gencnt; /* (s,p) */ | ||||
union { | union { | ||||
void *inp_ppcb; /* (s) netstat(1) */ | int64_t inp_ppcb; /* (s) netstat(1) */ | ||||
int64_t ph_ppcb; | int64_t ph_ppcb; | ||||
}; | }; | ||||
int64_t inp_spare64[4]; | int64_t inp_spare64[4]; | ||||
uint32_t inp_flow; /* (s) */ | uint32_t inp_flow; /* (s) */ | ||||
uint32_t inp_flowid; /* (s) */ | uint32_t inp_flowid; /* (s) */ | ||||
uint32_t inp_flowtype; /* (s) */ | uint32_t inp_flowtype; /* (s) */ | ||||
int32_t inp_flags; /* (s,p) */ | int32_t inp_flags; /* (s,p) */ | ||||
int32_t inp_flags2; /* (s) */ | int32_t inp_flags2; /* (s) */ | ||||
int32_t inp_rss_listen_bucket; /* (n) */ | int32_t inp_rss_listen_bucket; /* (n) */ | ||||
int32_t in6p_cksum; /* (n) */ | int32_t in6p_cksum; /* (n) */ | ||||
int32_t inp_spare32[4]; | int32_t inp_spare32[4]; | ||||
uint16_t in6p_hops; /* (n) */ | uint16_t in6p_hops; /* (n) */ | ||||
uint8_t inp_ip_tos; /* (n) */ | uint8_t inp_ip_tos; /* (n) */ | ||||
int8_t pad8; | int8_t pad8; | ||||
uint8_t inp_vflag; /* (s,p) */ | uint8_t inp_vflag; /* (s,p) */ | ||||
uint8_t inp_ip_ttl; /* (n) */ | uint8_t inp_ip_ttl; /* (n) */ | ||||
uint8_t inp_ip_p; /* (n) */ | uint8_t inp_ip_p; /* (n) */ | ||||
uint8_t inp_ip_minttl; /* (n) */ | uint8_t inp_ip_minttl; /* (n) */ | ||||
int8_t inp_spare8[4]; | int8_t inp_spare8[4]; | ||||
} __aligned(8); | } __aligned(8); | ||||
struct xinpgen { | struct xinpgen { | ||||
size_t xig_len; /* length of this structure */ | uint64_t xig_len; /* length of this structure */ | ||||
u_int xig_count; /* number of PCBs at this time */ | u_int xig_count; /* number of PCBs at this time */ | ||||
inp_gen_t xig_gen; /* generation count at this time */ | inp_gen_t xig_gen; /* generation count at this time */ | ||||
so_gen_t xig_sogen; /* socket generation count this time */ | so_gen_t xig_sogen; /* socket generation count this time */ | ||||
} __aligned(8); | } __aligned(8); | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
void in_pcbtoxinpcb(const struct inpcb *, struct xinpcb *); | void in_pcbtoxinpcb(const struct inpcb *, struct xinpcb *); | ||||
#endif | #endif | ||||
#endif /* _SYS_SOCKETVAR_H_ */ | #endif /* _SYS_SOCKETVAR_H_ */ | ||||
▲ Show 20 Lines • Show All 448 Lines • Show Last 20 Lines |