Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/socketvar.h
Show First 20 Lines • Show All 465 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
/* | /* | ||||
* Structure to export socket from kernel to utilities, via sysctl(3). | * Structure to export socket from kernel to utilities, via sysctl(3). | ||||
*/ | */ | ||||
struct xsocket { | struct xsocket { | ||||
size_t xso_len; /* length of this structure */ | uint64_t xso_len; /* length of this structure */ | ||||
union { | union { | ||||
void *xso_so; /* kernel address of struct socket */ | int64_t xso_so; /* kernel address of struct socket */ | ||||
int64_t ph_so; | int64_t ph_so; | ||||
}; | }; | ||||
union { | union { | ||||
void *so_pcb; /* kernel address of struct inpcb */ | int64_t so_pcb; /* kernel address of struct inpcb */ | ||||
int64_t ph_pcb; | int64_t ph_pcb; | ||||
}; | }; | ||||
uint64_t so_oobmark; | uint64_t so_oobmark; | ||||
int64_t so_spare64[8]; | int64_t so_spare64[8]; | ||||
int32_t xso_protocol; | int32_t xso_protocol; | ||||
int32_t xso_family; | int32_t xso_family; | ||||
uint32_t so_qlen; | uint32_t so_qlen; | ||||
uint32_t so_incqlen; | uint32_t so_incqlen; | ||||
Show All 36 Lines |