Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 753 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 753 Bytes

Get the Real MAC Address from the NIC Hardware

This is a program to get the real MAC address from the NIC hardware.

The core code is

epaddr->cmd = ETHTOOL_GPERMADDR;
epaddr->size = MAX_ADDR_LEN;

and

ioctl(sockfd, SIOCETHTOOL, &ifr);

CC0
To the extent possible under law, yjf_victor has waived all copyright and related or neighboring rights to get_physical_mac.