Go to the documentation of this file.
17 #ifndef _UAPI_LINUX_TCP_H
18 #define _UAPI_LINUX_TCP_H
20 #include <linux/types.h>
21 #include <asm/byteorder.h>
22 #include <linux/socket.h>
29 #if defined(__LITTLE_ENDIAN_BITFIELD)
40 #elif defined(__BIG_ENDIAN_BITFIELD)
52 #error "Adjust your <asm/byteorder.h> defines"
69 #define tcp_flag_word(tp) ( ((union tcp_word_hdr *)(tp))->words [3])
87 #define TCP_MSS_DEFAULT 536U
88 #define TCP_MSS_DESIRED 1220U
94 #define TCP_KEEPIDLE 4
95 #define TCP_KEEPINTVL 5
99 #define TCP_DEFER_ACCEPT 9
100 #define TCP_WINDOW_CLAMP 10
102 #define TCP_QUICKACK 12
103 #define TCP_CONGESTION 13
104 #define TCP_MD5SIG 14
105 #define TCP_COOKIE_TRANSACTIONS 15
106 #define TCP_THIN_LINEAR_TIMEOUTS 16
107 #define TCP_THIN_DUPACK 17
108 #define TCP_USER_TIMEOUT 18
109 #define TCP_REPAIR 19
110 #define TCP_REPAIR_QUEUE 20
111 #define TCP_QUEUE_SEQ 21
112 #define TCP_REPAIR_OPTIONS 22
113 #define TCP_FASTOPEN 23
128 #define TCPI_OPT_TIMESTAMPS 1
129 #define TCPI_OPT_SACK 2
130 #define TCPI_OPT_WSCALE 4
131 #define TCPI_OPT_ECN 8
132 #define TCPI_OPT_ECN_SEEN 16
133 #define TCPI_OPT_SYN_DATA 32
137 #define TCPF_CA_Open (1<<TCP_CA_Open)
139 #define TCPF_CA_Disorder (1<<TCP_CA_Disorder)
141 #define TCPF_CA_CWR (1<<TCP_CA_CWR)
143 #define TCPF_CA_Recovery (1<<TCP_CA_Recovery)
145 #define TCPF_CA_Loss (1<<TCP_CA_Loss)
191 #define TCP_MD5SIG_MAXKEYLEN 80
202 #define TCP_COOKIE_MIN 8
203 #define TCP_COOKIE_MAX 16
204 #define TCP_COOKIE_PAIR_SIZE (2*TCP_COOKIE_MAX)
207 #define TCP_COOKIE_IN_ALWAYS (1 << 0)
208 #define TCP_COOKIE_OUT_NEVER (1 << 1)
212 #define TCP_S_DATA_IN (1 << 2)
213 #define TCP_S_DATA_OUT (1 << 3)