diff options
Diffstat (limited to 'include/uapi/linux/tcp.h')
| -rw-r--r-- | include/uapi/linux/tcp.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/include/uapi/linux/tcp.h b/include/uapi/linux/tcp.h index 6b1ead0b0c9d..8d776ebc4829 100644 --- a/include/uapi/linux/tcp.h +++ b/include/uapi/linux/tcp.h | |||
| @@ -102,7 +102,6 @@ enum { | |||
| 102 | #define TCP_QUICKACK 12 /* Block/reenable quick acks */ | 102 | #define TCP_QUICKACK 12 /* Block/reenable quick acks */ |
| 103 | #define TCP_CONGESTION 13 /* Congestion control algorithm */ | 103 | #define TCP_CONGESTION 13 /* Congestion control algorithm */ |
| 104 | #define TCP_MD5SIG 14 /* TCP MD5 Signature (RFC2385) */ | 104 | #define TCP_MD5SIG 14 /* TCP MD5 Signature (RFC2385) */ |
| 105 | #define TCP_COOKIE_TRANSACTIONS 15 /* TCP Cookie Transactions */ | ||
| 106 | #define TCP_THIN_LINEAR_TIMEOUTS 16 /* Use linear timeouts for thin streams*/ | 105 | #define TCP_THIN_LINEAR_TIMEOUTS 16 /* Use linear timeouts for thin streams*/ |
| 107 | #define TCP_THIN_DUPACK 17 /* Fast retrans. after 1 dupack */ | 106 | #define TCP_THIN_DUPACK 17 /* Fast retrans. after 1 dupack */ |
| 108 | #define TCP_USER_TIMEOUT 18 /* How long for loss retry before timeout */ | 107 | #define TCP_USER_TIMEOUT 18 /* How long for loss retry before timeout */ |
| @@ -199,29 +198,4 @@ struct tcp_md5sig { | |||
| 199 | __u8 tcpm_key[TCP_MD5SIG_MAXKEYLEN]; /* key (binary) */ | 198 | __u8 tcpm_key[TCP_MD5SIG_MAXKEYLEN]; /* key (binary) */ |
| 200 | }; | 199 | }; |
| 201 | 200 | ||
| 202 | /* for TCP_COOKIE_TRANSACTIONS (TCPCT) socket option */ | ||
| 203 | #define TCP_COOKIE_MIN 8 /* 64-bits */ | ||
| 204 | #define TCP_COOKIE_MAX 16 /* 128-bits */ | ||
| 205 | #define TCP_COOKIE_PAIR_SIZE (2*TCP_COOKIE_MAX) | ||
| 206 | |||
| 207 | /* Flags for both getsockopt and setsockopt */ | ||
| 208 | #define TCP_COOKIE_IN_ALWAYS (1 << 0) /* Discard SYN without cookie */ | ||
| 209 | #define TCP_COOKIE_OUT_NEVER (1 << 1) /* Prohibit outgoing cookies, | ||
| 210 | * supercedes everything. */ | ||
| 211 | |||
| 212 | /* Flags for getsockopt */ | ||
| 213 | #define TCP_S_DATA_IN (1 << 2) /* Was data received? */ | ||
| 214 | #define TCP_S_DATA_OUT (1 << 3) /* Was data sent? */ | ||
| 215 | |||
| 216 | /* TCP_COOKIE_TRANSACTIONS data */ | ||
| 217 | struct tcp_cookie_transactions { | ||
| 218 | __u16 tcpct_flags; /* see above */ | ||
| 219 | __u8 __tcpct_pad1; /* zero */ | ||
| 220 | __u8 tcpct_cookie_desired; /* bytes */ | ||
| 221 | __u16 tcpct_s_data_desired; /* bytes of variable data */ | ||
| 222 | __u16 tcpct_used; /* bytes in value */ | ||
| 223 | __u8 tcpct_value[TCP_MSS_DEFAULT]; | ||
| 224 | }; | ||
| 225 | |||
| 226 | |||
| 227 | #endif /* _UAPI_LINUX_TCP_H */ | 201 | #endif /* _UAPI_LINUX_TCP_H */ |
