I need to get the MAC address from linux
This is how far I got ( ideas from strace ifconfig ) however I'm not
very familiar with ioctl. How do I decode the returned value from ioctl.
I've just made it a string but don't know how to interpret it. Could
anyone help please.
int fd = socket( PF_INET, SOCK_DGRAM, 0 );
ioctl( fd, SIOCGIFHWADDR, str );
Thank you in advanceQuote:}