History

tcp: add SYN/data info to TCP_INFO

Add a bit TCPI_OPT_SYN_DATA (32) to the socket option TCP_INFO:tcpi_options. It's set if the data in SYN (sent or received) is acked by SYN-ACK. Server or client application can use this information to check Fast Open success rate.

Yuchung Cheng committed 14 years ago

Commit 6f736011 parent e6e71056 files · +8 −1Browse files

Showing the changes to include/uapi (1 of 6 files). Show all

Unified · Split

include/uapi/linux/tcp.h+1−0
@@ -130,6 +130,7 @@ enum { · 129 unmodified lines
130130 #define TCPI_OPT_WSCALE 4
131131 #define TCPI_OPT_ECN 8 /* ECN was negociated at TCP session init */
132132 #define TCPI_OPT_ECN_SEEN 16 /* we received at least one packet with ECT */
133+#define TCPI_OPT_SYN_DATA 32 /* SYN-ACK acked data in SYN sent or rcvd */
133134
134135 enum tcp_ca_state {
135136 TCP_CA_Open = 0,