>>How come I can't ping a broadcast address in Linux? If I try, I get:
>If you try it as root, it will probably work.
BZZZTTT!!! Wrong!
Password:
To err is human, to forgive is Not Company Policy.
vector:~# ping 134.22.81.255
PING 134.22.81.255 (134.22.81.255): 56 data bytes
ping: sendto: Permission denied
ping: wrote 134.22.81.255 64 chars, ret=-1
ping: sendto: Permission denied
ping: wrote 134.22.81.255 64 chars, ret=-1
--- 134.22.81.255 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
On a sun, as myself:
ptomblin:~> /usr/etc/ping -s 134.22.81.255
PING 134.22.81.255: 56 data bytes
64 bytes from dumbo.gandalf.ca (134.22.80.181): icmp_seq=0. time=5. ms
64 bytes from pluto.gandalf.ca (134.22.80.217): icmp_seq=0. time=135. ms
64 bytes from bubba.gandalf.ca (134.22.80.195): icmp_seq=0. time=172. ms
[etc]
----134.22.81.255 PING Statistics----
2 packets transmitted, 36 packets received, -1700% packet loss
round-trip (ms) min/avg/max = 3/192/516
This is dead wrong - root should be able to broadcast ping.
--
Paul Tomblin, Head - Automation Design Group.
Gandalf Canada Limited
This is not an official statement of Gandalf, or of Vicki Robinson.
"Hello, this is Linus Torvalds, and I pronounce Linux as Linux"