On Mon, 2003-02-10 at 04:37, Martin Stiemerling wrote:
> See man getifaddrs:
> 
> 
>http://www.freebsd.org/cgi/man.cgi?query=getifaddrs&sektion=3&apropos=0&manpath=FreeBSD+4.7-RELEASE
> 
> You can obtain l2 addresses with this system call.

Thanks, I had my head buried so deep in ioctls and sysctls, I didn't
consider anything else.

Joe

> 
> Martin
> 
> Joe Marcus Clarke wrote:
> 
> >What's the best (or easiest) way to programmatically obtain interfaces'
> >hardware addresses (that is, without forking ifconfig ;-))?  I'm looking
> >at how ifconfig does it, and wondering if there's an easier way.  It
> >seems Linux has a nice SIOCGIFHWADDR ioctl to do this.  Thanks.
> >
> >Joe
> >
> >  
> >
> 
-- 
PGP Key : http://www.marcuscom.com/pgp.asc

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to