Re: No UDP over 2Gb/s
On Wed, 28 Jul 2004, Steven Carter wrote:
> I am unable to get iperf to send a UDP stream at more that 2Gb/s:
In iperf-1.7.0/src/Settings.hpp, you can see:
/*
* The ext_Settings is a structure that holds all
* options for a given execution of either a client
* or server...
*/
struct ext_Settings {
char* mFileName; // -F
char* mHost; // -c
.
.
.
int mUDPRate; // -b or -u
^^^^^
An "int" ranges only from -2^31 to 2^31 on 32bits architectures, that
is from -2G to +2G.
Use a 64bits machine ;-)
More seriously, you can try to switch that variable to a "long" (or to
an "unsigned int"), but I would be surprised if changing only the line
above is enough to make it work. But it's so easy that it worths a
try.