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.
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
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message