46 MacAddress(
unsigned char oui1,
unsigned char oui2,
unsigned char oui3,
unsigned char nic1,
unsigned char nic2,
unsigned char nic3);
81 std::string
str()
const;
87 static std::optional<MacAddress>
parse(
const std::string& address);
A model of a MAC address.
Definition macaddress.h:35
unsigned char getSixth() const
Gets the sixth byte of the address.
std::string str() const
Gets the string representation of the address.
unsigned char getFifth() const
Gets the fifth byte of the address.
MacAddress(unsigned char oui1, unsigned char oui2, unsigned char oui3, unsigned char nic1, unsigned char nic2, unsigned char nic3)
Constructs a MacAddress.
unsigned char getSecond() const
Gets the second byte of the address.
unsigned char getThird() const
Gets the third byte of the address.
unsigned char getFirst() const
Gets the first byte of the address.
static std::optional< MacAddress > parse(const std::string &address)
Parses a MacAddress from a string.
unsigned char getFourth() const
Gets the fourth byte of the address.