Windows build fixes.
This commit is contained in:
parent
7eccc5ebf2
commit
07f505971c
15 changed files with 53 additions and 26 deletions
|
@ -112,8 +112,8 @@ public:
|
|||
if ((!etherType)||(etherType > 0xffff)) // sanity checks
|
||||
return false;
|
||||
else if ((_etWhitelist[0] & 1)) // prsence of 0 in set inverts sense: whitelist becomes blacklist
|
||||
return (!(_etWhitelist[etherType >> 3] & (1 << (etherType & 7))));
|
||||
else return ((_etWhitelist[etherType >> 3] & (1 << (etherType & 7))));
|
||||
return ((_etWhitelist[etherType >> 3] & (1 << (etherType & 7))) == 0);
|
||||
else return ((_etWhitelist[etherType >> 3] & (1 << (etherType & 7))) != 0);
|
||||
}
|
||||
|
||||
std::set<unsigned int> allowedEtherTypes() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue