diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:25:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:25:50 +0000 |
commit | 11ea4fcf515dbc4f75be538b784635085dc10db2 (patch) | |
tree | af05377dc5f1495935a0aa3b43258c20cb8fb5b9 /include/gettcpinfo.h | |
parent | Releasing progress-linux version 2.1.9+dfsg-1~progress7.99u1. (diff) | |
download | iperf-11ea4fcf515dbc4f75be538b784635085dc10db2.tar.xz iperf-11ea4fcf515dbc4f75be538b784635085dc10db2.zip |
Merging upstream version 2.2.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'include/gettcpinfo.h')
-rw-r--r-- | include/gettcpinfo.h | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/include/gettcpinfo.h b/include/gettcpinfo.h index 995ee20..4eee092 100644 --- a/include/gettcpinfo.h +++ b/include/gettcpinfo.h @@ -50,21 +50,28 @@ #include "headers.h" +#define HAVE_TCP_INFLIGHT (HAVE_TCP_STATS && HAVE_STRUCT_TCP_INFO_TCPI_DSACK_DUPS && \ + HAVE_STRUCT_TCP_INFO_TCPI_LOST && HAVE_STRUCT_TCP_INFO_TCPI_SACKED \ + && HAVE_STRUCT_TCP_INFO_TCPI_UNACKED) + #ifdef __cplusplus extern "C" { #endif struct iperf_tcpstats { bool isValid; - int rtt; + uint32_t rtt; double connecttime; #if HAVE_TCP_STATS - int cwnd; - int rttvar; - intmax_t retry; - intmax_t retry_prev; - intmax_t retry_tot; - int mss_negotiated; + intmax_t cwnd; + uint32_t cwnd_packets; + uint32_t rttvar; + uint32_t retry; + uint32_t retry_prev; + uint32_t retry_tot; + uint32_t mss_negotiated; + uint32_t packets_in_flight; + intmax_t bytes_in_flight; #endif }; |