Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 244 Bytes

README.md

File metadata and controls

5 lines (3 loc) · 244 Bytes

Sample code to get network interfaces, their names, IPv4/v6 addresses, and MAC's

  • get_mac_ioctl.c: use ioctl to get interface MAC address e.g. 08:00:27:f8:5c:2c
  • get_interfaces.c: get interfaces, their IPv4/v6 addresses, and MAC addresses