Function switchml::Str2Mac

Function Documentation

uint64_t switchml::Str2Mac(std::string const &mac_str)

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

Parameters

mac_str – the string represntation of the MAC address (FF:FF:FF:FF:FF:FF)

Returns

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