projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7c0ca4d
)
add linux tcp state enums
author
Timo Teräs
<timo.teras@iki.fi>
Mon, 14 Oct 2013 05:28:19 +0000
(08:28 +0300)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 23 Nov 2013 21:57:53 +0000
(16:57 -0500)
include/netinet/tcp.h
patch
|
blob
|
history
diff --git
a/include/netinet/tcp.h
b/include/netinet/tcp.h
index
8266f21
..
6f75eb3
100644
(file)
--- 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>