about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2020-02-15 09:42:37 +0000
committerRich Felker <dalias@aerifal.cx>2020-09-09 17:19:50 -0400
commitd4f298149c5e36ac5521888d645bfb65f4d027fc (patch)
tree90b4877449b0fbef524d90e928b1fb22a0c661bf /include
parentffac0c229986725c0d0f3c806bafa7e3ca409f3b (diff)
downloadmusl-d4f298149c5e36ac5521888d645bfb65f4d027fc.tar.gz
musl-d4f298149c5e36ac5521888d645bfb65f4d027fc.tar.xz
musl-d4f298149c5e36ac5521888d645bfb65f4d027fc.zip
netinet/tcp.h: update tcp_info for linux v5.5
see

  linux commit 480274787d7e3458bc5a7cfbbbe07033984ad711
  tcp: add TCP_INFO status for failed client TFO
Diffstat (limited to 'include')
-rw-r--r--include/netinet/tcp.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/netinet/tcp.h b/include/netinet/tcp.h
index 44a007aa..db3904ae 100644
--- a/include/netinet/tcp.h
+++ b/include/netinet/tcp.h
@@ -181,6 +181,13 @@ struct tcphdr {
 #define TCP_CA_Recovery		3
 #define TCP_CA_Loss		4
 
+enum tcp_fastopen_client_fail {
+	TFO_STATUS_UNSPEC,
+	TFO_COOKIE_UNAVAILABLE,
+	TFO_DATA_NOT_ACKED,
+	TFO_SYN_RETRANSMITTED,
+};
+
 struct tcp_info {
 	uint8_t tcpi_state;
 	uint8_t tcpi_ca_state;
@@ -189,7 +196,7 @@ struct tcp_info {
 	uint8_t tcpi_backoff;
 	uint8_t tcpi_options;
 	uint8_t tcpi_snd_wscale : 4, tcpi_rcv_wscale : 4;
-	uint8_t tcpi_delivery_rate_app_limited : 1;
+	uint8_t tcpi_delivery_rate_app_limited : 1, tcpi_fastopen_client_fail : 2;
 	uint32_t tcpi_rto;
 	uint32_t tcpi_ato;
 	uint32_t tcpi_snd_mss;