ok, ive done a little detective work on ifconfig and from what i can see you want to use the SIOCGIFHWADDR ioctl on an open network socket, it takes a pointer to a struct ifreq which is defined in include/linux/if.h it might be worth looking at the source to ifconfig because this is just an estimated guess from the output of strace and some greps.
post back if you need an example program and i'll try to write one.
<edit>
what was wrong with the post from Hiper in Linux Hardware?
http://www.linuxquestions.org/questi...hreadid=135016
please dont double post, if you feel the answer wasnt good enough then post back or if you want your thread moved click the report to moderator link and ask them to move to another forum
</edit>