diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-08-24 14:28:16 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-08-24 14:28:16 -0700 |
| commit | ccea3d04d63e39a020e140b348aa87e272747c7e (patch) | |
| tree | 9c8dbbea3a62ecffa00cb0083dded59fba80d181 /include | |
| parent | 90bd3e07a0f8f2c2b0657e8cbf0b842f683b7f9c (diff) | |
| download | infinitytier-ccea3d04d63e39a020e140b348aa87e272747c7e.tar.gz infinitytier-ccea3d04d63e39a020e140b348aa87e272747c7e.zip | |
Push NETWORK_CONFIG_REFRESH on POSTs to /member/... in controller.
Diffstat (limited to 'include')
| -rw-r--r-- | include/ZeroTierOne.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h index 5864e346..906edef2 100644 --- a/include/ZeroTierOne.h +++ b/include/ZeroTierOne.h @@ -1854,6 +1854,27 @@ enum ZT_ResultCode ZT_Node_circuitTestBegin(ZT_Node *node,ZT_CircuitTest *test,v void ZT_Node_circuitTestEnd(ZT_Node *node,ZT_CircuitTest *test); /** + * Push a network refresh + * + * This is used by network controller implementations to send a + * NETWORK_CONFIG_REFRESH message to tell a node to refresh its + * config and to optionally push one or more credential timestamp + * blacklist thresholds for members of the network. + * + * Code outside a controller implementation will have no use for + * this as these messages are ignored if they do not come from a + * controller. + * + * @param node Node instance + * @param dest ZeroTier address of destination to which to send NETWORK_CONFIG_REFRESH + * @param nwid Network ID + * @param blacklistAddresses Array of ZeroTier addresses of network members to set timestamp blacklists for + * @param blacklistBeforeTimestamps Timestamps before which to blacklist credentials for each corresponding address in blacklistAddresses[] + * @param blacklistCount Size of blacklistAddresses[] and blacklistBeforeTimestamps[] + */ +void ZT_Node_pushNetworkRefresh(ZT_Node *node,uint64_t dest,uint64_t nwid,const uint64_t *blacklistAddresses,const uint64_t *blacklistBeforeTimestamps,unsigned int blacklistCount); + +/** * Initialize cluster operation * * This initializes the internal structures and state for cluster operation. |
