summaryrefslogtreecommitdiff
path: root/node/Network.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-09-04 13:53:48 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-09-04 13:53:48 -0700
commitd1341578d8dc7fd3e39b24dde1ac2dae4da7a632 (patch)
tree5d47db5666618eabd2317f6746640d11f7586192 /node/Network.hpp
parent7b8ce1605781f14d909e0aa099455b86d738c60a (diff)
downloadinfinitytier-d1341578d8dc7fd3e39b24dde1ac2dae4da7a632.tar.gz
infinitytier-d1341578d8dc7fd3e39b24dde1ac2dae4da7a632.zip
... and another one!
Diffstat (limited to 'node/Network.hpp')
-rw-r--r--node/Network.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/node/Network.hpp b/node/Network.hpp
index 47d2efc0..d8ffd612 100644
--- a/node/Network.hpp
+++ b/node/Network.hpp
@@ -298,10 +298,10 @@ public:
inline Address findBridgeTo(const MAC &mac) const
{
Mutex::Lock _l(_lock);
- std::map<MAC,Address>::const_iterator br(_remoteBridgeRoutes.find(mac));
- if (br == _remoteBridgeRoutes.end())
- return Address();
- return br->second;
+ const Address *const br = _remoteBridgeRoutes.get(mac);
+ if (br)
+ return *br;
+ return Address();
}
/**
@@ -359,10 +359,10 @@ private:
volatile bool _enabled;
volatile bool _portInitialized;
- std::vector< MulticastGroup > _myMulticastGroups; // multicast groups that we belong to including those behind us (updated periodically)
- Hashtable< MulticastGroup,uint64_t > _multicastGroupsBehindMe; // multicast groups bridged to us and when we last saw activity on each
+ std::vector< MulticastGroup > _myMulticastGroups; // multicast groups that we belong to (according to tap)
+ Hashtable< MulticastGroup,uint64_t > _multicastGroupsBehindMe; // multicast groups that seem to be behind us and when we last saw them (if we are a bridge)
- std::map<MAC,Address> _remoteBridgeRoutes; // remote addresses where given MACs are reachable
+ Hashtable< MAC,Address > _remoteBridgeRoutes; // remote addresses where given MACs are reachable (for remote bridges)
std::map<Address,CertificateOfMembership> _membershipCertificates; // Other members' certificates of membership
std::map<Address,uint64_t> _lastPushedMembershipCertificate; // When did we last push our certificate to each remote member?