summaryrefslogtreecommitdiff
path: root/node/Multicaster.hpp
diff options
context:
space:
mode:
authorGrant Limberg <grant.limberg@zerotier.com>2018-12-06 13:08:39 -0800
committerGrant Limberg <grant.limberg@zerotier.com>2018-12-06 13:08:39 -0800
commit20f02bb772cde179b6d58f33199aaaead3abba87 (patch)
tree65a49e7f4ebb61628e6c29056380f974f54dc3ea /node/Multicaster.hpp
parent1c86f25fab57f4c2bc3f314683a911959f90b9b8 (diff)
parente6f9ab929df19ba667441b005ae2b9771922a92c (diff)
downloadinfinitytier-20f02bb772cde179b6d58f33199aaaead3abba87.tar.gz
infinitytier-20f02bb772cde179b6d58f33199aaaead3abba87.zip
Merge branch 'dev' of http://git.int.zerotier.com/ZeroTier/ZeroTierOne into dev
Diffstat (limited to 'node/Multicaster.hpp')
-rw-r--r--node/Multicaster.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/node/Multicaster.hpp b/node/Multicaster.hpp
index e57f81fe..c6c2a209 100644
--- a/node/Multicaster.hpp
+++ b/node/Multicaster.hpp
@@ -203,6 +203,10 @@ private:
MulticastGroupMember() {}
MulticastGroupMember(const Address &a,uint64_t ts) : address(a),timestamp(ts) {}
+ inline bool operator<(const Address &a) const { return (address < a); }
+ inline bool operator==(const Address &a) const { return (address == a); }
+ inline bool operator!=(const Address &a) const { return (address != a); }
+
Address address;
uint64_t timestamp; // time of last notification
};