From b888e033c075b1f849a5eb27c4b5da52fe3cac32 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 13 Apr 2015 18:12:45 -0700 Subject: JSON control plane, almost done... --- include/ZeroTierOne.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h index 4fa45780..870255f1 100644 --- a/include/ZeroTierOne.h +++ b/include/ZeroTierOne.h @@ -328,7 +328,12 @@ enum ZT1_VirtualNetworkStatus /** * Initialization of network failed or other internal error */ - ZT1_NETWORK_STATUS_PORT_ERROR = 4 + ZT1_NETWORK_STATUS_PORT_ERROR = 4, + + /** + * ZeroTier One version too old + */ + ZT1_NETWORK_STATUS_CLIENT_TOO_OLD = 5 }; /** @@ -853,6 +858,14 @@ enum ZT1_ResultCode ZT1_Node_multicastSubscribe(ZT1_Node *node,uint64_t nwid,uin */ enum ZT1_ResultCode ZT1_Node_multicastUnsubscribe(ZT1_Node *node,uint64_t nwid,uint64_t multicastGroup,unsigned long multicastAdi = 0); +/** + * Get this node's 40-bit ZeroTier address + * + * @param node Node instance + * @return ZeroTier address (least significant 40 bits of 64-bit int) + */ +uint64_t ZT1_Node_address(ZT1_Node *node); + /** * Get the status of this node * -- cgit v1.2.3