I'm hoping someone can help me figure out why I cant use
sendto() to send a UDP packet to a broadcast address under linux.
Lets say the normal IP is 192.168.1.1
I can use the same code on solaris, to bind to 192.168.1.1, and then
use sendto() to send a packet to 192.168.1.255
But on linux (either as regular user, or as root), I get an error,
send failed: Permission denied
(the 'Permission denied' is from perror() )
Any suggestions?
If someone wants to play with real code, you can get it from
http://www.bolthole.com/freeha/freeha-0.9.tar.gz
--
[Trim the no-bots from my address to reply to me by email!]
[ Do NOT email-CC me on posts. Pick one or the other.]
http://www.spamlaws.com/state/ca1.html