Re: MAC address for Ethernet interface
Kenneth Porter <[email protected]> Fri, 12 Dec 2003 09:06:59 -0800
| Newsgroups | gmane.linux.redhat.devel |
|---|---|
| Message-ID | <6257407.1071220019@[10.0.0.221]> |
--On Friday, December 12, 2003 11:06 AM -0500 James Olin Oden <[email protected]> wrote: > What I would do is > get the source code for ifconfig and try to determine what it did to get > that information I am pretty sure its just a simple ioctl. Just looked (it's in the net-tools package on Fedora). Sean's solution is what ifconfig uses, assuming you know the name of the device. To get a list of names, ifconfig reads /proc/net/dev.