diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-04-07 10:57:59 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-04-07 10:57:59 -0700 |
| commit | 817824b88bce8d2e5659226b80d3f232633c557f (patch) | |
| tree | 61f0ea204332a13e5e11c2e0baf46d231c1390b1 /node/SelfAwareness.hpp | |
| parent | a2821e90007ac7af490f044f0c2579309f6c8a01 (diff) | |
| download | infinitytier-817824b88bce8d2e5659226b80d3f232633c557f.tar.gz infinitytier-817824b88bce8d2e5659226b80d3f232633c557f.zip | |
Some external surface awareness work, and IP scope classification.
Diffstat (limited to 'node/SelfAwareness.hpp')
| -rw-r--r-- | node/SelfAwareness.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
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 |
