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/linux (1 of 6 files). Show all

Unified · Split

include/linux/tcp.h+2−1
@@ -191,7 +191,8 @@ struct tcp_sock { · 190 unmodified lines
191191 u8 do_early_retrans:1,/* Enable RFC5827 early-retransmit */
192192 early_retrans_delayed:1, /* Delayed ER timer installed */
193193 syn_data:1, /* SYN includes data */
194− syn_fastopen:1; /* SYN includes Fast Open option */
194+ syn_fastopen:1, /* SYN includes Fast Open option */
195+ syn_data_acked:1;/* data in SYN is acked by SYN-ACK */
195196
196197 /* RTT measurement */
197198 u32 srtt; /* smoothed round trip time << 3 */