From 817824b88bce8d2e5659226b80d3f232633c557f Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 7 Apr 2015 10:57:59 -0700 Subject: Some external surface awareness work, and IP scope classification. --- node/SelfAwareness.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'node/SelfAwareness.hpp') diff --git a/node/SelfAwareness.hpp b/node/SelfAwareness.hpp index 93af34f4..6d0b9ebb 100644 --- a/node/SelfAwareness.hpp +++ b/node/SelfAwareness.hpp @@ -29,6 +29,7 @@ #define ZT_SELFAWARENESS_HPP #include "InetAddress.hpp" +#include "Mutex.hpp" namespace ZeroTier { @@ -47,10 +48,13 @@ public: * Called when a trusted remote peer informs us of our external network address * * @param physicalAddress Physical address as reflected by any trusted peer + * @param trusted True if this peer is trusted */ - void iam(const InetAddress &physicalAddress); + void iam(const InetAddress &physicalAddress,bool trusted); private: + const RuntimeEnvironment *RR; + Mutex _lock; }; } // namespace ZeroTier -- cgit v1.2.3