Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp.h
Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
#define TCP_NODELAY 1 /* don't delay send to coalesce packets */ | #define TCP_NODELAY 1 /* don't delay send to coalesce packets */ | ||||
#if __BSD_VISIBLE | #if __BSD_VISIBLE | ||||
#define TCP_MAXSEG 2 /* set maximum segment size */ | #define TCP_MAXSEG 2 /* set maximum segment size */ | ||||
#define TCP_NOPUSH 4 /* don't push last block of write */ | #define TCP_NOPUSH 4 /* don't push last block of write */ | ||||
#define TCP_NOOPT 8 /* don't use TCP options */ | #define TCP_NOOPT 8 /* don't use TCP options */ | ||||
#define TCP_MD5SIG 16 /* use MD5 digests (RFC2385) */ | #define TCP_MD5SIG 16 /* use MD5 digests (RFC2385) */ | ||||
#define TCP_INFO 32 /* retrieve tcp_info structure */ | #define TCP_INFO 32 /* retrieve tcp_info structure */ | ||||
#define TCP_LOG 34 /* configure event logging for connection */ | |||||
#define TCP_LOGBUF 35 /* retrieve event log for connection */ | |||||
#define TCP_LOGID 36 /* configure log ID to correlate connections */ | |||||
#define TCP_LOGDUMP 37 /* dump connection log events to device */ | |||||
#define TCP_LOGDUMPID 38 /* dump events from connections with same ID to | |||||
device */ | |||||
#define TCP_CONGESTION 64 /* get/set congestion control algorithm */ | #define TCP_CONGESTION 64 /* get/set congestion control algorithm */ | ||||
#define TCP_CCALGOOPT 65 /* get/set cc algorithm specific options */ | #define TCP_CCALGOOPT 65 /* get/set cc algorithm specific options */ | ||||
#define TCP_KEEPINIT 128 /* N, time to establish connection */ | #define TCP_KEEPINIT 128 /* N, time to establish connection */ | ||||
#define TCP_KEEPIDLE 256 /* L,N,X start keeplives after this period */ | #define TCP_KEEPIDLE 256 /* L,N,X start keeplives after this period */ | ||||
#define TCP_KEEPINTVL 512 /* L,N interval between keepalives */ | #define TCP_KEEPINTVL 512 /* L,N interval between keepalives */ | ||||
#define TCP_KEEPCNT 1024 /* L,N number of keepalives before close */ | #define TCP_KEEPCNT 1024 /* L,N number of keepalives before close */ | ||||
#define TCP_FASTOPEN 1025 /* enable TFO / was created via TFO */ | #define TCP_FASTOPEN 1025 /* enable TFO / was created via TFO */ | ||||
#define TCP_PCAP_OUT 2048 /* number of output packets to keep */ | #define TCP_PCAP_OUT 2048 /* number of output packets to keep */ | ||||
#define TCP_PCAP_IN 4096 /* number of input packets to keep */ | #define TCP_PCAP_IN 4096 /* number of input packets to keep */ | ||||
#define TCP_FUNCTION_BLK 8192 /* Set the tcp function pointers to the specified stack */ | #define TCP_FUNCTION_BLK 8192 /* Set the tcp function pointers to the specified stack */ | ||||
/* Start of reserved space for third-party user-settable options. */ | /* Start of reserved space for third-party user-settable options. */ | ||||
#define TCP_VENDOR SO_VENDOR | #define TCP_VENDOR SO_VENDOR | ||||
#define TCP_CA_NAME_MAX 16 /* max congestion control name length */ | #define TCP_CA_NAME_MAX 16 /* max congestion control name length */ | ||||
#define TCPI_OPT_TIMESTAMPS 0x01 | #define TCPI_OPT_TIMESTAMPS 0x01 | ||||
#define TCPI_OPT_SACK 0x02 | #define TCPI_OPT_SACK 0x02 | ||||
#define TCPI_OPT_WSCALE 0x04 | #define TCPI_OPT_WSCALE 0x04 | ||||
#define TCPI_OPT_ECN 0x08 | #define TCPI_OPT_ECN 0x08 | ||||
#define TCPI_OPT_TOE 0x10 | #define TCPI_OPT_TOE 0x10 | ||||
/* Maximum length of log ID. */ | |||||
#define TCP_LOG_ID_LEN 64 | |||||
/* | /* | ||||
* The TCP_INFO socket option comes from the Linux 2.6 TCP API, and permits | * The TCP_INFO socket option comes from the Linux 2.6 TCP API, and permits | ||||
* the caller to query certain information about the state of a TCP | * the caller to query certain information about the state of a TCP | ||||
* connection. We provide an overlapping set of fields with the Linux | * connection. We provide an overlapping set of fields with the Linux | ||||
* implementation, but since this is a fixed size structure, room has been | * implementation, but since this is a fixed size structure, room has been | ||||
* left for growth. In order to maximize potential future compatibility with | * left for growth. In order to maximize potential future compatibility with | ||||
* the Linux API, the same variable names and order have been adopted, and | * the Linux API, the same variable names and order have been adopted, and | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |