Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/socketvar.h
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | struct sigio *so_sigio; /* [sg] information for async I/O or | ||||
out of band data (SIGURG) */ | out of band data (SIGURG) */ | ||||
struct ucred *so_cred; /* (a) user credentials */ | struct ucred *so_cred; /* (a) user credentials */ | ||||
struct label *so_label; /* (b) MAC label for socket */ | struct label *so_label; /* (b) MAC label for socket */ | ||||
/* NB: generation count must not be first. */ | /* NB: generation count must not be first. */ | ||||
so_gen_t so_gencnt; /* (h) generation count */ | so_gen_t so_gencnt; /* (h) generation count */ | ||||
void *so_emuldata; /* (b) private data for emulators */ | void *so_emuldata; /* (b) private data for emulators */ | ||||
so_dtor_t *so_dtor; /* (b) optional destructor */ | so_dtor_t *so_dtor; /* (b) optional destructor */ | ||||
struct osd osd; /* Object Specific extensions */ | struct osd osd; /* Object Specific extensions */ | ||||
/* divert socket buffer sizes */ | |||||
u_long divsendspace; /* divert send buffer size */ | |||||
u_long divrecvspace; /* divert receive buffer size */ | |||||
/* | /* | ||||
* so_fibnum, so_user_cookie and friends can be used to attach | * so_fibnum, so_user_cookie and friends can be used to attach | ||||
* some user-specified metadata to a socket, which then can be | * some user-specified metadata to a socket, which then can be | ||||
* used by the kernel for various actions. | * used by the kernel for various actions. | ||||
* so_user_cookie is used by ipfw/dummynet. | * so_user_cookie is used by ipfw/dummynet. | ||||
*/ | */ | ||||
int so_fibnum; /* routing domain for this socket */ | int so_fibnum; /* routing domain for this socket */ | ||||
uint32_t so_user_cookie; | uint32_t so_user_cookie; | ||||
▲ Show 20 Lines • Show All 410 Lines • Show Last 20 Lines |