diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-04-17 15:21:53 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-04-17 15:21:53 -0700 |
commit | 740121504f2e9cb00ab0a97d277afd57db936633 (patch) | |
tree | f07279faea7b3b3200bdeb457bfd9d78896f1084 /include | |
parent | 417f56de2f7b75c4c9e91d9cc8e067c4542213c8 (diff) | |
download | infinitytier-740121504f2e9cb00ab0a97d277afd57db936633.tar.gz infinitytier-740121504f2e9cb00ab0a97d277afd57db936633.zip |
Add a timestamp to netconf cache, fix some SQL queries in NC.
Diffstat (limited to 'include')
-rw-r--r-- | include/ZeroTierOne.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h index e60d4a74..fd1cf81b 100644 --- a/include/ZeroTierOne.h +++ b/include/ZeroTierOne.h @@ -104,6 +104,17 @@ extern "C" { #define ZT1_MAX_PEER_NETWORK_PATHS 4 /** + * Maximum number of revisions over which a network COM can differ and still be in-horizon (agree) + * + * This is the default max delta for the revision field in COMs issued + * by network controllers, and is defined here for documentation purposes. + * When a network is changed so as to de-authorize a member, its revision + * should be incremented by this number. Otherwise all other changes that + * materially affect the network should result in increment by one. + */ +#define ZT1_CERTIFICATE_OF_MEMBERSHIP_REVISION_MAX_DELTA 16 + +/** * Feature flag: ZeroTier One was built to be thread-safe -- concurrent processXXX() calls are okay */ #define ZT1_FEATURE_FLAG_THREAD_SAFE 0x00000001 |