Re: MAC address for Ethernet interface

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

 



On Fri, 12 Dec 2003, anil  garrepally wrote:

> Is there any system call available for getting the MAC address of
> ethernet interface. I need it in my program.

/sbin/ifconfig eth0 | head -n 1 | awk '{ print $5 }'

--
Craig Kelley  -- kellcrai@xxxxxxx
Turn In Your Neighbor Today!  http://www.bsa.org/usa/report/report.php
http://www.isu.edu/~kellcrai finger ink@xxxxxxxxxxxxxxx for PGP block


_______________________________________________
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