If there are more lost packets than out of order packets, then the lost
packets are decremented by the number of received out of order packets
(which makes some sense but is a little scary).

If the number of out of order packets is equal to the number of lost
packets, then the number of lost packets is not decremented.

--- iperf-2.0.4.orig/src/Reporter.c     2008-04-08 11:37:54.000000000 +0900
+++ iperf-2.0.4/src/Reporter.c  2009-01-09 10:26:19.000000000 +0900
@@ -807,7 +807,7 @@ int reporter_condprintstats( ReporterDat
         // assume most of the time out-of-order packets are not
         // duplicate packets, so conditionally subtract them from the lost 
packets.
         stats->info.cntError = stats->cntError;
-        if ( stats->info.cntError > stats->info.cntOutofOrder ) {
+        if ( stats->info.cntError >= stats->info.cntOutofOrder ) {
             stats->info.cntError -= stats->info.cntOutofOrder;
         }
         stats->info.cntDatagrams = (isUDP(stats) ? stats->PacketID : 
stats->cntDatagrams);

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Iperf-users mailing list
Iperf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iperf-users

Reply via email to