On Thu, 2008-08-28 at 17:17 -0400, Patrick McCarty wrote:
> Regarding if it works on *BSD..
> 
> I looked up OpenBSD's arp.c code
> (http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/arp/arp.c), and it
> does not appear to use an ioctl at all.

Hmm, perhaps some adventuring BSD person kann "strace arp $IP" and it
IMHO simpler to see what they actually use.

> I suspect the ioctl is unsupported for the other platforms, but thats
> what ifdef's are for :)

Yes, no problem with that.
We have already other OS-dependent/specific sub-directories (if only to
avoi^Wreduce the #ifdef mess;-).

> Clearly, its a clean way to do it for Linux.

Yes, that's for sure. Actually I wonder if the ioctl() is the most
elegant way to do or if e.g. netlink sockets or other means {sh,c}ould
be used.

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services




