[Gllug] Reading MAC addresses

tet at accucard.com tet at accucard.com
Mon Jul 23 14:03:25 UTC 2001


Allen Wayne writes:

>here is a stupid question...does anyone know of a method of reading a
>network card MAC address from code (i.e. C/C++)?
>
>Any pointers would be gratefully received

A quick strace of ifconfig suggests that the SIOCGIFHWADDR ioctl is
what you're after...

Tet

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list