Function switchml::Mac2Str(const uint64_t)

Function Documentation

std::string switchml::Mac2Str(const uint64_t addr)

Take a MAC address as an 8 bytes integer with the first 6 bytes representing the MAC address and return the string representation of it.

Parameters

addr – an 8 bytes integer with the first 6 bytes representing the MAC address.

Returns

std::string the string represntation of the MAC address (FF:FF:FF:FF:FF:FF)