Date: Mon, 10 Feb 2003 10:37:19 +0100 From: Martin Stiemerling <Martin.Stiemerling@ccrle.nec.de> To: Joe Marcus Clarke <marcus@marcuscom.com> Cc: freebsd-net@FreeBSD.ORG Subject: Re: Programmatically obtaining interface hardware addrs Message-ID: <3E4772CF.9020201@ccrle.nec.de> References: <1044760845.66333.35.camel@shumai.marcuscom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E4772CF.9020201>