Crate mac_address2

source ·
Expand description

mac_address2 provides a cross platform way to retrieve the MAC address of network hardware. See the Wikipedia entry for more information.

Supported platforms: Windows, Linux, MacOS, FreeBSD, OpenBSD, Android

Structs§

Enums§

  • Possible errors when attempting to retrieve a MAC address.
  • An error that may occur when parsing a MAC address string.

Functions§

  • Calls the OS-specific function for retrieving the MAC address of the first network device containing one, ignoring local-loopback.
  • Attempts to look up the MAC address of an interface via the specified name. NOTE: On Windows, this uses the FriendlyName field of the adapter, which is the same name shown in the “Network Connections” Control Panel screen; and the AdapterName field as the fallback.
  • Attempts to look up the interface name via MAC address.