trying out stuff
This commit is contained in:
parent
507cfe2140
commit
e494a7db91
6 changed files with 87 additions and 76 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue