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