Subject: Re: arp cache
To: Louis <razbitum@yahoo.com>
From: Chris Pinnock <cjep@fawlty.net>
List: netbsd-help
Date: 08/12/2001 18:43:49
On Sun, Aug 12, 2001 at 09:40:14AM -0700, Louis wrote:
> I m writing a program in C for NetBSD and i need to
> have access to the arp cache to get some ethernet
> addresses.
> Several Unix sytems & linux use the SIOCGARP ioctl
> request, but it doesn t seem to exist on NetBSD and I
> haven t found any similar ioctl requests.
> 
> Any ideas/comments would be most welcome.

You might find the source code to the arp(8) command helpful.

You can view the source code on the web at:
http://cvsweb.no.netbsd.org/bsdweb.cgi/basesrc/usr.sbin/arp/

best wishes,
-- 
Chris