yubin00145865 / iperf

Automatically exported from code.google.com/p/iperf
Other
0 stars 0 forks source link

Option parsing is broken; starts sanity checking before option parsing is done #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
-d evaluates if -c is set before all option parsing is done.

This means that

    iperf -dc host

will not start a dual test while

    iperf -c host -d

does; obviously this behavior is undesirable.

host1:~% iperf -dc host2
WARNING: option -d is not valid for server mode
------------------------------------------------------------
Client connecting to host2, TCP port 5001
TCP window size: 16.0 KByte (default)
------------------------------------------------------------
[  3] local host1 port 42220 connected with host2 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec    376 MBytes    315 Mbits/sec
host1:~% iperf -c host2 -d
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
------------------------------------------------------------
Client connecting to host2, TCP port 5001
TCP window size: 63.1 KByte (default)
------------------------------------------------------------
[  5] local host1 port 42221 connected with host2 port 5001
[  4] local host1 port 5001 connected with host2 port 57550
[ ID] Interval       Transfer     Bandwidth
[  5]  0.0-10.0 sec  98.7 MBytes  82.8 Mbits/sec
[  4]  0.0-10.0 sec    978 MBytes    817 Mbits/sec
host1:~% 

Original issue reported on code.google.com by richih.m...@gmail.com on 27 Mar 2012 at 3:49

GoogleCodeExporter commented 8 years ago

Original comment by bltier...@gmail.com on 7 Sep 2012 at 1:14

GoogleCodeExporter commented 8 years ago

Original comment by bltier...@es.net on 25 Feb 2013 at 11:31