about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-10-14 08:28:19 +0300
committerRich Felker <dalias@aerifal.cx>2013-11-23 16:57:53 -0500
commit4b2c8fee3599c7676a6eca1e6880b8e042794f53 (patch)
treecaa3d77d4baf6549948f931ba2ff88ec4fa9b985
parent7c0ca4d361f402dbfe445cd53cf2b91691d44c7e (diff)
downloadmusl-4b2c8fee3599c7676a6eca1e6880b8e042794f53.tar.gz
musl-4b2c8fee3599c7676a6eca1e6880b8e042794f53.tar.xz
musl-4b2c8fee3599c7676a6eca1e6880b8e042794f53.zip
add linux tcp state enums
-rw-r--r--include/netinet/tcp.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/netinet/tcp.h b/include/netinet/tcp.h
index 8266f21d..6f75eb32 100644
--- a/include/netinet/tcp.h
+++ b/include/netinet/tcp.h
@@ -27,6 +27,18 @@
 #define TCP_FASTOPEN     23
 #define TCP_TIMESTAMP    24
 
+#define TCP_ESTABLISHED  1
+#define TCP_SYN_SENT     2
+#define TCP_SYN_RECV     3
+#define TCP_FIN_WAIT1    4
+#define TCP_FIN_WAIT2    5
+#define TCP_TIME_WAIT    6
+#define TCP_CLOSE        7
+#define TCP_CLOSE_WAIT   8
+#define TCP_LAST_ACK     9
+#define TCP_LISTEN       10
+#define TCP_CLOSING      11
+
 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 #define SOL_TCP 6
 #include <sys/types.h>