Date: 08 Feb 2003 22:20:46 -0500 From: Joe Marcus Clarke <marcus@marcuscom.com> To: freebsd-net@freebsd.org Subject: Programmatically obtaining interface hardware addrs Message-ID: <1044760845.66333.35.camel@shumai.marcuscom.com>
index | next in thread | raw e-mail
[-- Attachment #1 --] 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+RckNb2iPiv4Uz4cRAt76AJ4laNmrRU7QGqyEA/EjCfupCbeKugCePZHN ai5uo5wurJpaXuzOZ4tlxWM= =Hmsj -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1044760845.66333.35.camel>
