11 MACAddress(
const std::vector<unsigned char> &bytes);
17 uint64_t toNumber()
const;
19 std::string toString()
const;
21 std::string toString(
const char separator)
const;
23 std::vector<unsigned char> bytes()
const
31 void into(
unsigned char bytes[6])
const;
33 operator uint64_t()
const
40 return (mac.bytes() == m_bytes);
45 return (mac.bytes() != m_bytes);
50 return (toNumber() < mac.toNumber());
55 return (toNumber() > mac.toNumber());
58 static MACAddress parse(
const std::string &str,
const char separator =
':');
63 std::vector<unsigned char> m_bytes;
Definition: MACAddress.h:8
void into(unsigned char bytes[6]) const
Definition: MACAddress.cpp:57