hello. currently, if you direct iperf to be in server mode, and to
listen on a port that is already in use, or not available to you,
iperf gives a warning, but it should be fatal.

$ iperf -s -p 80
bind failed: Permission denied
------------------------------------------------------------
Server listening on TCP port 80
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
$ iperf -v
iperf version 2.0.4 (7 Apr 2008) pthreads


The attached patch fixes this; iperf will now consider this a fatal
error and exit, but the exit code is still wrong.

$ ./iperf -s -p 80
bind failed: Permission denied
$ echo $?
0



-- 
deny ip any any (4393649193 matches)

Attachment: iperf-die-on-bind-fail.patch
Description: Binary data

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Iperf-users mailing list
Iperf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iperf-users

Reply via email to