From 65675341ac47f81861732129d4c0bc2aef5e96ff Mon Sep 17 00:00:00 2001 From: Andrew Hsieh Date: Mon, 29 Jul 2013 20:15:57 -0700 Subject: [PATCH] Add TCP_INFO state enum values. See b.android.com/38881 and fix in bionic 0dff43cab41e4a0bd5bd018584952c68cb224977 Change-Id: I2417fe3cf43919bf363f36c337ea6813f13699d8 --- ndk/platforms/android-3/include/netinet/tcp.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ndk/platforms/android-3/include/netinet/tcp.h b/ndk/platforms/android-3/include/netinet/tcp.h index 9adf9048f..bc52249b4 100644 --- a/ndk/platforms/android-3/include/netinet/tcp.h +++ b/ndk/platforms/android-3/include/netinet/tcp.h @@ -31,4 +31,22 @@ #include /* Include *before* linux/tcp.h */ #include +__BEGIN_DECLS + +enum { + TCP_ESTABLISHED = 1, + TCP_SYN_SENT, + TCP_SYN_RECV, + TCP_FIN_WAIT1, + TCP_FIN_WAIT2, + TCP_TIME_WAIT, + TCP_CLOSE, + TCP_CLOSE_WAIT, + TCP_LAST_ACK, + TCP_LISTEN, + TCP_CLOSING +}; + +__END_DECLS + #endif /* _NETINET_TCP_H */