diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-08-23 13:02:59 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-08-23 13:02:59 -0700 |
commit | 32fa0617004e80c99b341eb1b4753705b515b53a (patch) | |
tree | 55840f1e0d524cbea83cae6fd8945ed142267f3b /node/NetworkConfig.hpp | |
parent | 70368312039f37d08ba687b07a5caad1c57cd8de (diff) | |
download | infinitytier-32fa0617004e80c99b341eb1b4753705b515b53a.tar.gz infinitytier-32fa0617004e80c99b341eb1b4753705b515b53a.zip |
Compute credential TTL et al.
Diffstat (limited to 'node/NetworkConfig.hpp')
-rw-r--r-- | node/NetworkConfig.hpp | 16 |
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 |