summaryrefslogtreecommitdiffstats
path: root/include/gettcpinfo.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:25:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:25:49 +0000
commit04fc174d50fd19d6ae78fd2fd2faae221acff807 (patch)
tree23e5482ac4eb332df0fc69bf932118f0d4e42eb0 /include/gettcpinfo.h
parentAdding upstream version 2.1.9+dfsg. (diff)
downloadiperf-upstream.tar.xz
iperf-upstream.zip
Adding upstream version 2.2.0+dfsg.upstream/2.2.0+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'include/gettcpinfo.h')
-rw-r--r--include/gettcpinfo.h21
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
};