21 #ifndef INCLUDE_OLA_NETWORK_MACADDRESS_H_
22 #define INCLUDE_OLA_NETWORK_MACADDRESS_H_
61 explicit MACAddress(
const uint8_t address[LENGTH]);
67 bool operator==(
const MACAddress &other)
const;
69 bool operator!=(
const MACAddress &other)
const {
70 return !(*
this == other);
84 void Get(uint8_t ptr[LENGTH])
const;
92 bool Pack(uint8_t *buffer,
unsigned int length)
const {
105 friend std::ostream& operator<< (std::ostream &out,
116 static MACAddress*
FromString(
const std::string &address);
125 static bool FromString(
const std::string &address, MACAddress *target);
128 static MACAddress FromStringOrDie(
const std::string &address);
131 uint8_t m_address[LENGTH];
138 #endif // INCLUDE_OLA_NETWORK_MACADDRESS_H_