fixed some issues

This commit is contained in:
2017-05-23 21:42:01 +02:00
parent d028b79325
commit 79c12bb007
3 changed files with 54 additions and 23 deletions

View File

@@ -28,6 +28,11 @@ namespace WiFiRaw {
memcpy(this, data, 6);
}
/** convert to pointer */
const uint8_t* asPtr() const {
return (uint8_t*) this;
}
/** equal to the given mac? */
bool operator == (const MACAddress& o) const {
return (a == o.a) && (b == o.b) && (c == o.c) && (d == o.d) && (e == o.e) && (f == o.f);