BAN: Add comparison for MAC

This commit is contained in:
Bananymous 2024-02-03 18:03:27 +02:00
parent 2138eeb87f
commit 3a6d31d3fa
1 changed files with 11 additions and 0 deletions

View File

@ -8,6 +8,17 @@ namespace BAN
struct MACAddress
{
uint8_t address[6];
constexpr bool operator==(const MACAddress& other) const
{
return
address[0] == other.address[0] &&
address[1] == other.address[1] &&
address[2] == other.address[2] &&
address[3] == other.address[3] &&
address[4] == other.address[4] &&
address[5] == other.address[5];
}
};
}