summaryrefslogtreecommitdiff
path: root/node/Network.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/Network.hpp')
-rw-r--r--node/Network.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/node/Network.hpp b/node/Network.hpp
index 10714a7a..a8eb3156 100644
--- a/node/Network.hpp
+++ b/node/Network.hpp
@@ -40,6 +40,7 @@
#include "MAC.hpp"
#include "Dictionary.hpp"
#include "Multicaster.hpp"
+#include "Membership.hpp"
#include "NetworkConfig.hpp"
#include "CertificateOfMembership.hpp"
@@ -113,7 +114,7 @@ public:
* a match certain actions may be taken such as sending a copy of the packet
* to a TEE or REDIRECT target.
*
- * @param ztSource Source Peer (to save an extra lookup)
+ * @param sourcePeer Source Peer
* @param ztDest Destination ZeroTier address
* @param macSource Ethernet layer source address
* @param macDest Ethernet layer destination address
@@ -124,7 +125,7 @@ public:
* @return True if packet should be accepted locally
*/
bool filterIncomingPacket(
- const SharedPtr<Peer> &ztSource,
+ const SharedPtr<Peer> &sourcePeer,
const Address &ztDest,
const MAC &macSource,
const MAC &macDest,
@@ -387,6 +388,8 @@ private:
} _netconfFailure;
volatile int _portError; // return value from port config callback
+ Hashtable<Address,Membership> _memberships;
+
Mutex _lock;
AtomicCounter __refCount;