MAC address types.
Definition in file macaddr.hpp.
Go to the source code of this file.
#include <array>
#include <stdexcept>
#include <string>
#include <utility>
#include <userver/utils/encoding/hex.hpp>
|
namespace | utils |
| Utilities.
|
|
|
std::string | utils::MacaddrToString (Macaddr macaddr) |
| Get 48-bit MAC address as a string in "xx:xx:.." format.
|
|
std::string | utils::Macaddr8ToString (Macaddr8 macaddr) |
| Get 64-bit MAC address as a string in "xx:xx:.." format.
|
|
Macaddr | utils::MacaddrFromString (const std::string &str) |
| Get 48-bit MAC address from std::string.
|
|
Macaddr8 | utils::Macaddr8FromString (const std::string &str) |
| Get 64-bit MAC address from std::string.
|
|