Some external surface awareness work, and IP scope classification.

This commit is contained in:
Adam Ierymenko 2015-04-07 10:57:59 -07:00
parent a2821e9000
commit 817824b88b
6 changed files with 160 additions and 28 deletions

View file

@ -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