Date: 10 Feb 2003 11:42:17 -0500 From: Joe Marcus Clarke <marcus@marcuscom.com> To: Martin Stiemerling <Martin.Stiemerling@ccrle.nec.de> Cc: freebsd-net@FreeBSD.ORG Subject: Re: Programmatically obtaining interface hardware addrs Message-ID: <1044895337.58944.8.camel@shumai.marcuscom.com> In-Reply-To: <3E4772CF.9020201@ccrle.nec.de> References: <1044760845.66333.35.camel@shumai.marcuscom.com> <3E4772CF.9020201@ccrle.nec.de>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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 #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA+R9Zpb2iPiv4Uz4cRAsdtAJ4tiJng/NSOdxQbSZrfGvBPh7xWDwCfZNVk PnkEYkonhEMS/yom/XFtLbc= =CN83 -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1044895337.58944.8.camel>
