diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-11-21 15:35:18 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-11-21 15:35:18 -0800 |
| commit | 97d915b06c52d4bf03fd327a4365991262802475 (patch) | |
| tree | 325eb76543586d98b779310e996825567c51a882 /include | |
| parent | d159e5ca4400db6b6b1fc18d0e917fb0cca60627 (diff) | |
| download | infinitytier-97d915b06c52d4bf03fd327a4365991262802475.tar.gz infinitytier-97d915b06c52d4bf03fd327a4365991262802475.zip | |
Expose relay policy in node settings.
Diffstat (limited to 'include')
| -rw-r--r-- | include/ZeroTierOne.h | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h index 67232cd2..399f090c 100644 --- a/include/ZeroTierOne.h +++ b/include/ZeroTierOne.h @@ -397,6 +397,16 @@ enum ZT_Event }; /** + * Node relay policy + */ +enum ZT_RelayPolicy +{ + ZT_RELAY_POLICY_NEVER = 0, + ZT_RELAY_POLICY_TRUSTED = 1, + ZT_RELAY_POLICY_ALWAYS = 2 +}; + +/** * Current node status */ typedef struct @@ -431,6 +441,11 @@ typedef struct const char *secretIdentity; /** + * Node relay policy + */ + ZT_RelayPolicy relayPolicy; + + /** * True if some kind of connectivity appears available */ int online; @@ -791,13 +806,6 @@ enum ZT_VirtualNetworkConfigOperation ZT_VIRTUAL_NETWORK_CONFIG_OPERATION_DESTROY = 4 }; -enum ZT_RelayPolicy -{ - ZT_RELAY_POLICY_NEVER = 0, - ZT_RELAY_POLICY_TRUSTED = 1, - ZT_RELAY_POLICY_ALWAYS = 2 -}; - /** * What trust hierarchy role does this peer have? */ |
