Re: MAC address for Ethernet interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--On Friday, December 12, 2003 11:06 AM -0500 James Olin Oden <joden@xxxxxxxxxxxxxxxxxxxxx> 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.



_______________________________________________ Redhat-devel-list mailing list Redhat-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux