summaryrefslogtreecommitdiff
path: root/node/Node.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-02-02 16:40:57 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-02-02 16:40:57 -0800
commitb7148c107d04ba7b71577c764e88a02098d23480 (patch)
treec5f7026b81ba58cb802fd52f053b010f39925acd /node/Node.cpp
parentb1bf3f68c327588132c55fe2fe913d3ec98c0b25 (diff)
downloadinfinitytier-b7148c107d04ba7b71577c764e88a02098d23480.tar.gz
infinitytier-b7148c107d04ba7b71577c764e88a02098d23480.zip
Rip out network environment fingerprint. This will be replaced by constant monitoring of actual external address surface.
Diffstat (limited to 'node/Node.cpp')
-rw-r--r--node/Node.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/node/Node.cpp b/node/Node.cpp
index b9f027e3..8999642b 100644
--- a/node/Node.cpp
+++ b/node/Node.cpp
@@ -391,7 +391,6 @@ Node::ReasonForTermination Node::run()
uint64_t lastNetworkAutoconfCheck = Utils::now() - 5000ULL; // check autoconf again after 5s for startup
uint64_t lastPingCheck = 0;
uint64_t lastClean = Utils::now(); // don't need to do this immediately
- uint64_t lastNetworkFingerprintCheck = 0;
uint64_t lastMulticastCheck = 0;
uint64_t lastSupernodePingCheck = 0;
uint64_t lastBeacon = 0;
@@ -399,7 +398,6 @@ Node::ReasonForTermination Node::run()
uint64_t lastShutdownIfUnreadableCheck = 0;
long lastDelayDelta = 0;
- uint64_t networkConfigurationFingerprint = 0;
RR->timeOfLastResynchronize = Utils::now();
// We are up and running
@@ -432,17 +430,6 @@ Node::ReasonForTermination Node::run()
Thread::sleep(ZT_SLEEP_WAKE_SETTLE_TIME);
}
- // If our network environment looks like it changed, resynchronize.
- if ((resynchronize)||((now - lastNetworkFingerprintCheck) >= ZT_NETWORK_FINGERPRINT_CHECK_DELAY)) {
- lastNetworkFingerprintCheck = now;
- uint64_t fp = RR->routingTable->networkEnvironmentFingerprint(RR->nc->networkTapDeviceNames());
- if (fp != networkConfigurationFingerprint) {
- LOG("netconf fingerprint change: %.16llx != %.16llx, resyncing with network",networkConfigurationFingerprint,fp);
- networkConfigurationFingerprint = fp;
- resynchronize = true;
- }
- }
-
// Supernodes do not resynchronize unless explicitly ordered via SIGHUP.
if ((resynchronize)&&(RR->topology->amSupernode()))
resynchronize = false;