Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/socketvar.h
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | */ | ||||
* 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; | ||||
void *so_pspare[2]; /* packet pacing / general use */ | void *so_pspare[2]; /* general use */ | ||||
int so_ispare[2]; /* packet pacing / general use */ | uint32_t so_max_pacing_rate; /* (f) TX rate limit in bytes/s */ | ||||
int so_ispare[1]; /* general use */ | |||||
}; | }; | ||||
/* | /* | ||||
* Global accept mutex to serialize access to accept queues and | * Global accept mutex to serialize access to accept queues and | ||||
* fields associated with multiple sockets. This allows us to | * fields associated with multiple sockets. This allows us to | ||||
* avoid defining a lock order between listen and accept sockets | * avoid defining a lock order between listen and accept sockets | ||||
* until such time as it proves to be a good idea. | * until such time as it proves to be a good idea. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 284 Lines • Show Last 20 Lines |