summaryrefslogtreecommitdiff
path: root/node/Peer.hpp
diff options
context:
space:
mode:
authorGrant Limberg <grant.limberg@zerotier.com>2016-11-30 10:21:19 -0800
committerGrant Limberg <grant.limberg@zerotier.com>2016-11-30 10:21:19 -0800
commit32478845b2df919d7546a889e49d276ea416a1f3 (patch)
tree57e4d52862e90222a540a733935d237a03fdbe52 /node/Peer.hpp
parenta39f6e9b4c3ccba677f58f3c0aafe9e6186c3031 (diff)
parent44f0e3097ee081b50628821b6db2b740489a89c6 (diff)
downloadinfinitytier-32478845b2df919d7546a889e49d276ea416a1f3.tar.gz
infinitytier-32478845b2df919d7546a889e49d276ea416a1f3.zip
Merge branch 'dev' into systemtray
Diffstat (limited to 'node/Peer.hpp')
-rw-r--r--node/Peer.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/node/Peer.hpp b/node/Peer.hpp
index a7240cb4..78b345b9 100644
--- a/node/Peer.hpp
+++ b/node/Peer.hpp
@@ -165,6 +165,13 @@ public:
void attemptToContactAt(const InetAddress &localAddr,const InetAddress &atAddress,uint64_t now);
/**
+ * Try a memorized or statically defined path if any are known
+ *
+ * Under the hood this is done periodically based on ZT_TRY_MEMORIZED_PATH_INTERVAL.
+ */
+ void tryMemorizedPath(uint64_t now);
+
+ /**
* Send pings or keepalives depending on configured timeouts
*
* @param now Current time
@@ -435,6 +442,7 @@ private:
uint8_t _remoteClusterOptimal6[16];
uint64_t _lastReceive; // direct or indirect
uint64_t _lastNontrivialReceive; // frames, things like netconf, etc.
+ uint64_t _lastTriedMemorizedPath;
uint64_t _lastDirectPathPushSent;
uint64_t _lastDirectPathPushReceive;
uint64_t _lastCredentialRequestSent;