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>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-6J5WwVU7W/Wdmf6PGpv6 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2003-02-10 at 04:37, Martin Stiemerling wrote: > See man getifaddrs: >=20 > http://www.freebsd.org/cgi/man.cgi?query=3Dgetifaddrs&sektion=3D3&apropos= =3D0&manpath=3DFreeBSD+4.7-RELEASE >=20 > 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 >=20 > Martin >=20 > Joe Marcus Clarke wrote: >=20 > >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 > > > > =20 > > >=20 --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-6J5WwVU7W/Wdmf6PGpv6 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA+R9Zpb2iPiv4Uz4cRAsdtAJ4tiJng/NSOdxQbSZrfGvBPh7xWDwCfZNVk PnkEYkonhEMS/yom/XFtLbc= =CN83 -----END PGP SIGNATURE----- --=-6J5WwVU7W/Wdmf6PGpv6-- 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?1044895337.58944.8.camel>