diff options
Diffstat (limited to 'node/Address.hpp')
| -rw-r--r-- | node/Address.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/node/Address.hpp b/node/Address.hpp index e4cdf8a7..c63d41d9 100644 --- a/node/Address.hpp +++ b/node/Address.hpp @@ -177,7 +177,8 @@ public: * @param prefixBits Number of bits in prefix bit pattern * @return True if address is within prefix */ - inline bool withinMulticastPropagationPrefix(uint64_t prefix,unsigned int prefixBits) + inline bool withinMulticastPropagationPrefix(uint64_t prefix,unsigned int prefixBits) const + throw() { return ((_a & (0xffffffffffffffffULL >> (64 - prefixBits))) == prefix); } |
