Documentation ¶
Overview ¶
Package oui provides methods to lookup the Vendor string of an Organizationally Unique Identifier. For Ethernet MACs the OUI is the first 24 bits.
Vendor lookup in performed on a code generated data set. The static data is generated from the CSV file maintained by the IEEE. (https://standards-oui.ieee.org/oui/oui.csv).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Vendor ¶
Vendor returns the Vendor of the OUI s, or the empty string if not found. The value s can be either just the OUI or a mac address, it can also include or exclude the ":" delimiters. Any of the following are valid inputs:
0A:0B:0C 0a:0b:0c 0A0B0C 0a0b0c 0A:0B:0C:01:02:03 0a:0b:0c:01:02:03 0A0B0C010203 0a0b0c010203
func VendorFromMAC ¶
func VendorFromMAC(hw net.HardwareAddr) string
VendorFromMAC returns the hardware vendor of a net.HardwareAddr. Both 48 and 64 bits addresses are valid, as the OUI is the first 24 bits of both.
Types ¶
This section is empty.