Date: Sat, 26 Jun 2004 02:38:23 +0200 From: Ivan Voras <ivoras@fer.hr> To: hackers@freebsd.org Subject: Getting MAC address? Message-ID: <40DCC57F.5090209@fer.hr>
next in thread | raw e-mail | index | archive | help
How to get the MAC address for an (ethernet) interface? The linux code does this: retval = ioctl(thisint->sockInt, SIOCGIFHWADDR, &ifr); After some searching, I found SIOCSIFLLADDR ioctl, but it appears there isn't a "GET" counterpart. (I've got interface name & index available...) -- What part of "Ph'nglui mglw'nath Cthulhu R'lyeh wgah'nagl fhtagn" don't you understand?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40DCC57F.5090209>