Skip to content

About

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

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages