summaryrefslogtreecommitdiff
path: root/node/NetworkConfig.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-23 13:02:59 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-23 13:02:59 -0700
commit32fa0617004e80c99b341eb1b4753705b515b53a (patch)
tree55840f1e0d524cbea83cae6fd8945ed142267f3b /node/NetworkConfig.hpp
parent70368312039f37d08ba687b07a5caad1c57cd8de (diff)
downloadinfinitytier-32fa0617004e80c99b341eb1b4753705b515b53a.tar.gz
infinitytier-32fa0617004e80c99b341eb1b4753705b515b53a.zip
Compute credential TTL et al.
Diffstat (limited to 'node/NetworkConfig.hpp')
-rw-r--r--node/NetworkConfig.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/node/NetworkConfig.hpp b/node/NetworkConfig.hpp
index a853d020..e1a4e302 100644
--- a/node/NetworkConfig.hpp
+++ b/node/NetworkConfig.hpp
@@ -41,6 +41,22 @@
#include "Identity.hpp"
/**
+ * Default maximum credential TTL and maxDelta for COM timestamps
+ *
+ * The current value is two hours, providing ample time for a controller to
+ * experience fail-over, etc.
+ */
+#define ZT_NETWORKCONFIG_DEFAULT_MAX_CREDENTIAL_TTL 7200000ULL
+
+/**
+ * Default minimum credential TTL and maxDelta for COM timestamps
+ *
+ * This is just slightly over three minutes and provides three retries for
+ * all currently online members to refresh.
+ */
+#define ZT_NETWORKCONFIG_DEFAULT_MIN_CREDENTIAL_TTL 185000ULL
+
+/**
* Flag: allow passive bridging (experimental)
*/
#define ZT_NETWORKCONFIG_FLAG_ALLOW_PASSIVE_BRIDGING 0x0000000000000001ULL