diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-07-07 16:58:05 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-07-07 16:58:05 -0700 |
| commit | dab0fb9e05677bdc6294f196fcf8234892c582c1 (patch) | |
| tree | ba53dd4b8dfc3c5e52e11a1f554f1d28808d0a47 /node/SelfAwareness.cpp | |
| parent | e14d5d49a1bfe8a82e1bb6d0e6c480e273058ee8 (diff) | |
| download | infinitytier-dab0fb9e05677bdc6294f196fcf8234892c582c1.tar.gz infinitytier-dab0fb9e05677bdc6294f196fcf8234892c582c1.zip | |
Remote trace: plumbing, replace old TRACE with calls to Trace object.
Diffstat (limited to 'node/SelfAwareness.cpp')
| -rw-r--r-- | node/SelfAwareness.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/node/SelfAwareness.cpp b/node/SelfAwareness.cpp index 3e3397f5..173230fb 100644 --- a/node/SelfAwareness.cpp +++ b/node/SelfAwareness.cpp @@ -39,6 +39,7 @@ #include "Packet.hpp" #include "Peer.hpp" #include "Switch.hpp" +#include "Trace.hpp" // Entry timeout -- make it fairly long since this is just to prevent stale buildup #define ZT_SELFAWARENESS_ENTRY_TIMEOUT 600000 @@ -81,7 +82,7 @@ void SelfAwareness::iam(void *tPtr,const Address &reporter,const int64_t receive if ( (trusted) && ((now - entry.ts) < ZT_SELFAWARENESS_ENTRY_TIMEOUT) && (!entry.mySurface.ipsEqual(myPhysicalAddress)) ) { // Changes to external surface reported by trusted peers causes path reset in this scope - TRACE("physical address %s for scope %u as seen from %s(%s) differs from %s, resetting paths in scope",myPhysicalAddress.toString().c_str(),(unsigned int)scope,reporter.toString().c_str(),reporterPhysicalAddress.toString().c_str(),entry.mySurface.toString().c_str()); + RR->t->resettingPathsInScope(reporter,reporterPhysicalAddress,myPhysicalAddress,scope); entry.mySurface = myPhysicalAddress; entry.ts = now; |
