From: Matthew C. <Mat...@re...> - 2012-08-30 15:34:30
|
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 |