Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37596262
en ru br
ALT Linux repos
S:2.0.12-alt1
5.0: 2.0.4-alt1
4.1: 2.0.2-alt2
4.0: 2.0.2-alt2
3.0: 1.7.0-alt1.1

Group :: Monitoring
RPM: iperf

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 001-cast-to-max_size_t-instead-of-int.patch
Download


Description: iperf does not handle right large time values
 Reported by Eugene Butan <eugene@mikrotik.com>
 When I invoke 'iperf' with '-t 100000000' argument from an ordinary shell
 prompt it immediately exits displaying incorrect bandwidth. If I supply
 smaller time value, iperf works as expected.
Author: Roberto Lumbreras <rover@debian.org>
Bug-Debian: http://bugs.debian.org/346099
Forwarded: https://sourceforge.net/tracker/index.php?func=detail&aid=3140391&group_id=128336&atid=711371
--- iperf-2.0.4.orig/src/Settings.cpp.orig	2008-04-08 04:37:54.000000000 +0200
+++ iperf-2.0.4/src/Settings.cpp	2008-05-07 17:41:03.923942801 +0200
@@ -458,7 +458,7 @@
         case 't': // seconds to write for
             // time mode (instead of amount mode)
             setModeTime( mExtSettings );
-            mExtSettings->mAmount = (int) (atof( optarg ) * 100.0);
+            mExtSettings->mAmount = (max_size_t) (atof( optarg ) * 100.0);
             break;
 
         case 'u': // UDP instead of TCP
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin