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);
To the extent possible under law,
yjf_victor
has waived all copyright and related or neighboring rights to
get_physical_mac.