It looks like that never would have worked - the SO_BROADCAST flag is never set on the socket.
How do I submit patches? On 08/30/2012 08:52 AM, Matthew Caron wrote: > Hello folks, > > I'm trying to test broadcast rate limiting through a managed switch. > Asking the internet suggests that just doing a UDP send to a broadcast > address should work. So, I did the following: > > Server (10.42.42.1/24): iperf -s -u > Client (10.42.42.2/24): iperf -u -c 10.42.42.255 > > However, the result I get on the client is: > > connect failed: Permission denied > > `sudo`-ing doesn't help, so it's not an "only root can send broadcast" > issue. > > iperf version is: > > iperf version 2.0.4 (7 Apr 2008) pthreads > > > Both machines are Ubuntu 10.04. > > I've also tried it on Ubuntu 12.04 (iperf version 2.0.5 (08 Jul 2010) > pthreads), with the same result. > > Any suggestions? > > -- Matthew Caron, Software Build Engineer Sixnet, a Red Lion business | www.sixnet.com +1 (518) 877-5173 x138 office ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Iperf-users mailing list Iperf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iperf-users