Re: iperf UDP fails
Some OSes complain about the size of sockaddr_storage being passed into
the connect, oddly enough they do not care for TCP connect calls. If you
do not need IPv6 then after running ./configure in the cfg/ directory if
you comment out the define for IPv6 in the config.h file that is generated
and then rebuild it will make a IPv4 only version that uses sockaddr_in
instead of sockaddr_storage and therefore works fine. I already have a fix
in for the next release to make things happier. I wish OSes would be
consistent within themselves, but then what would I do with all that free
time not used for debugging OS quirks? =-)
Kevin
PS: This problem was actually diagnosed by Sam Horrocks.
On Thu, 20 Feb 2003, Eric Boyd wrote:
> Hi,
>
> I'm having a problem with iperf v1.6.5 on FreeBSD v4.6-STABLE.
>
> On the client:
>
> bash-2.05b$ iperf -v
> iperf version 1.6.5 (13 Jan 2003) pthreads
> bash-2.05b$ iperf -u -c foo.bar.edu
> ------------------------------------------------------------
> Client connecting to foo.bar.edu, UDP port 5001
> Sending 1470 byte datagrams
> UDP buffer size: 9.00 KByte (default)
> ------------------------------------------------------------
> [ 6] local 192.168.1.162 port 1158 connected with 192.168.1.161 port 5001
> write failed: Connection refused
> [ ID] Interval Transfer Bandwidth
> [ 6] 0.0- 0.0 sec 2.87 KBytes 1.05 Mbits/sec
> read failed: Connection refused
>
> On the server:
>
> bash-2.05b$ iperf -s -u
> ------------------------------------------------------------
> Server listening on UDP port 5001
> Receiving 1470 byte datagrams
> UDP buffer size: 41.1 KByte (default)
> ------------------------------------------------------------
> connect UDP failed: Invalid argument
> bash-2.05b$ iperf -v
> iperf version 1.6.5 (13 Jan 2003) pthreads
>
> This same test on the same machines works fine with v1.1.1 of iperf.
>
> Any ideas? Am I doing something wrong?
>
> --Eric
>
> Eric L. Boyd
> eboyd --at-- internet2.edu
> 734-352-7032 (work)
> 734-834-6708 (cell)
>
> Office 230
> Internet2
> 3025 Boardwalk
> Ann Arbor, MI 48108
>