Documentation
¶
Overview ¶
Package macaddr keeps one MAC format across the project: AA:BB:CC:DD:EE:FF, so MACs from NAS, clientdb and option 82 compare as plain strings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromRemoteID ¶ added in v0.3.13
FromRemoteID extracts the switch MAC from the DHCP option 82 remote-id. Ported from remoteReader() in the legacy abills.pl with offsets shifted by one byte (FreeRADIUS passed hex there, we get raw bytes). Some NAS send the MAC as text; the 18-byte form carries trailing garbage after the MAC.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.