summaryrefslogtreecommitdiff
path: root/node/Switch.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2019-06-25 13:42:20 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2019-06-25 13:42:20 -0700
commita019c3dd5d141d07a1554e36b6b4c942edfc4d70 (patch)
tree745e76548d3d51277bf6a42534f13d10d058ccec /node/Switch.cpp
parenta3ef9b8a15554326aaffdf14ebcf7795e5b73aff (diff)
downloadinfinitytier-a019c3dd5d141d07a1554e36b6b4c942edfc4d70.tar.gz
infinitytier-a019c3dd5d141d07a1554e36b6b4c942edfc4d70.zip
Tighten up credential push just a bit for faster up-time with older nodes, should not have significant impact on bandwidth. Also some cleanup and push direct path timing fixes.
Diffstat (limited to 'node/Switch.cpp')
-rw-r--r--node/Switch.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/node/Switch.cpp b/node/Switch.cpp
index a9c882fb..a6852d9f 100644
--- a/node/Switch.cpp
+++ b/node/Switch.cpp
@@ -417,6 +417,8 @@ void Switch::onLocalEthernet(void *tPtr,const SharedPtr<Network> &network,const
return;
}
+ network->pushCredentialsIfNeeded(tPtr,toZT,RR->node->now());
+
if (fromBridged) {
Packet outp(toZT,RR->identity.address(),Packet::VERB_EXT_FRAME);
outp.append(network->id());
@@ -437,7 +439,6 @@ void Switch::onLocalEthernet(void *tPtr,const SharedPtr<Network> &network,const
outp.compress();
aqm_enqueue(tPtr,network,outp,true,qosBucket);
}
-
} else {
// Destination is bridged behind a remote peer