summaryrefslogtreecommitdiff
path: root/src/tools/oping/oping.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2018-06-05 15:55:31 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2018-06-05 15:59:01 +0200
commit6a44d1437bf4cd57f1783942f5d8f5c7c9a1cd74 (patch)
treed3b462cac6a26ddab99557a2ef6e12ab3fa1c847 /src/tools/oping/oping.c
parentf9bd3b31c8152b037bf1dbc3409a017d57d4a2e6 (diff)
downloadouroboros-6a44d1437bf4cd57f1783942f5d8f5c7c9a1cd74.tar.gz
ouroboros-6a44d1437bf4cd57f1783942f5d8f5c7c9a1cd74.zip
tools: Add out-of-order statistics to oping
This adds out-of-order statistics to the oping tool. A packet is considered out-of-order if its sequence number is lower than the highest sequence number already received. Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be> Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src/tools/oping/oping.c')
-rw-r--r--src/tools/oping/oping.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/oping/oping.c b/src/tools/oping/oping.c
index 40578742..99f1e9d1 100644
--- a/src/tools/oping/oping.c
+++ b/src/tools/oping/oping.c
@@ -75,6 +75,7 @@ struct c {
/* stats */
uint32_t sent;
uint32_t rcvd;
+ size_t ooo;
double rtt_min;
double rtt_max;