On Mon, Jul 16, 2001 at 03:48:43AM -0300, Papo Napolitano wrote:
> Pleeeeeeease anyone know how to send an UDP (or TCP, or ICMP, I don't
> care) chunk of data (AKA packet) to EVERY host on an internal subnet
> (10.0.0.0)? Sending to 10.0.0.255 or 255.255.255.255 doesn't work. And I
> swear I can't find anything on the web. Nobody needs to broadcast?
Sending to the broadcast address is the easiest way, but isn't necessarily
foolproof. The only other way I can think of offhand is to lookup addresses
in your ARP table. There may be a Perl module for accessing the ARP table,
or you can use /proc, or the arp program.
The ARP table is not foolproof, either. Only hosts that have been looked up
via ARP (which is caused when packets are sent to or received from a machine
on the network) will show up.
Michael
--
Administrator www.shoebox.net
Programmer, System Administrator www.gallanttech.com
--
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]