trying out stuff

This commit is contained in:
j3d1 2016-02-23 20:51:11 +01:00
parent 507cfe2140
commit e494a7db91
6 changed files with 87 additions and 76 deletions

View file

@ -51,6 +51,14 @@ public:
}
}
int hash() {
int ret=0;
for (unsigned i = 0; i < 6; i++) {
ret = (ret*33) ^ (*this)[i];
}
return ret;
}
bool operator==(const macAddr &A) {
for (unsigned i = 0; i < 6; i++) {
if(A[i]!=(*this)[i])return false;