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?
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to