about summary refs log tree commit diff
path: root/include/netinet
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2017-03-05 20:51:23 +0000
committerRich Felker <dalias@aerifal.cx>2017-11-05 18:39:25 -0500
commit5c596ed8673836109d5f63a9eaa35d1196b96882 (patch)
tree9b3d7b1f815f6eb8521652dffc3678f39328b22f /include/netinet
parent6fc6ca1a323bc0b6b9e9cdc8fa72221ae18fe206 (diff)
downloadmusl-5c596ed8673836109d5f63a9eaa35d1196b96882.tar.gz
musl-5c596ed8673836109d5f63a9eaa35d1196b96882.tar.xz
musl-5c596ed8673836109d5f63a9eaa35d1196b96882.zip
add SCM_TIMESTAMPING_OPT_STATS and related TCP_ enums from linux v4.10
for tcp timestamp control messages, new in linux commit
1c885808e45601b2b6f68b30ac1d999e10b6f606
and export time measurements via tcp_info, added in linux commit
efd90174167530c67a54273fd5d8369c87f9bd32
Diffstat (limited to 'include/netinet')
-rw-r--r--include/netinet/tcp.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/netinet/tcp.h b/include/netinet/tcp.h
index 1339fcc3..935107a5 100644
--- a/include/netinet/tcp.h
+++ b/include/netinet/tcp.h
@@ -44,6 +44,13 @@
 #define TCP_LISTEN       10
 #define TCP_CLOSING      11
 
+enum {
+	TCP_NLA_PAD,
+	TCP_NLA_BUSY,
+	TCP_NLA_RWND_LIMITED,
+	TCP_NLA_SNDBUF_LIMITED,
+};
+
 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 #define TCPOPT_EOL              0
 #define TCPOPT_NOP              1
@@ -190,6 +197,9 @@ struct tcp_info {
 	uint32_t tcpi_data_segs_in;
 	uint32_t tcpi_data_segs_out;
 	uint64_t tcpi_delivery_rate;
+	uint64_t tcpi_busy_time;
+	uint64_t tcpi_rwnd_limited;
+	uint64_t tcpi_sndbuf_limited;
 };
 
 #define TCP_MD5SIG_MAXKEYLEN    80