Skip to content

code to get physical MAC address directly from the network adapter hardware

License

Notifications You must be signed in to change notification settings

yjfvictor/get_physical_mac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

code to get physical MAC address directly from the network adapter hardware

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages