Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/socketvar.h
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | struct socket { | ||||
short so_type; /* (a) generic type, see socket.h */ | short so_type; /* (a) generic type, see socket.h */ | ||||
short so_options; /* from socket call, see socket.h */ | short so_options; /* from socket call, see socket.h */ | ||||
short so_linger; /* time to linger while closing */ | short so_linger; /* time to linger while closing */ | ||||
short so_state; /* (b) internal state flags SS_* */ | short so_state; /* (b) internal state flags SS_* */ | ||||
int so_qstate; /* (e) internal state flags SQ_* */ | int so_qstate; /* (e) internal state flags SQ_* */ | ||||
void *so_pcb; /* protocol control block */ | void *so_pcb; /* protocol control block */ | ||||
struct vnet *so_vnet; /* (a) network stack instance */ | struct vnet *so_vnet; /* (a) network stack instance */ | ||||
struct protosw *so_proto; /* (a) protocol handle */ | struct protosw *so_proto; /* (a) protocol handle */ | ||||
uint32_t so_max_pacing_rate; /* (f) TX pacing rate info */ | |||||
/* | /* | ||||
* Variables for connection queuing. | * Variables for connection queuing. | ||||
* Socket where accepts occur is so_head in all subsidiary sockets. | * Socket where accepts occur is so_head in all subsidiary sockets. | ||||
* If so_head is 0, socket is not related to an accept. | * If so_head is 0, socket is not related to an accept. | ||||
* For head socket so_incomp queues partially completed connections, | * For head socket so_incomp queues partially completed connections, | ||||
* while so_comp is a queue of connections ready to be accepted. | * while so_comp is a queue of connections ready to be accepted. | ||||
* If a connection is aborted and it has so_head set, then | * If a connection is aborted and it has so_head set, then | ||||
* it has to be pulled out of either so_incomp or so_comp. | * it has to be pulled out of either so_incomp or so_comp. | ||||
▲ Show 20 Lines • Show All 334 Lines • Show Last 20 Lines |