BAN: Add comparison for MAC
This commit is contained in:
parent
2138eeb87f
commit
3a6d31d3fa
|
@ -8,6 +8,17 @@ namespace BAN
|
||||||
struct MACAddress
|
struct MACAddress
|
||||||
{
|
{
|
||||||
uint8_t address[6];
|
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];
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue