From 6eb9289367a1c8661d38895558b0f01eac0ddd5e Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 3 Apr 2015 16:52:53 -0700 Subject: Bunch more cleanup, improvements to NAT traversal logic, finished updating Switch. --- include/ZeroTierOne.h | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'include') diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h index 583a75ca..9499bb9b 100644 --- a/include/ZeroTierOne.h +++ b/include/ZeroTierOne.h @@ -151,12 +151,7 @@ enum ZT1_NodeStatusCode /** * Node is online -- at least one upstream is reachable */ - ZT1_NODE_STATUS_ONLINE = 1, - - /** - * Link desperation level has changed - */ - ZT1_NODE_STATUS_DESPERATION_CHANGE = 3 + ZT1_NODE_STATUS_ONLINE = 1 }; /** @@ -191,7 +186,7 @@ typedef struct /** * Current maximum link desperation metric */ - int desperation; + unsigned int desperation; } ZT1_NodeStatus; /** @@ -393,11 +388,6 @@ typedef struct */ uint64_t bytesReceived; - /** - * This path's desperation metric (higher == worse) - */ - int desperation; - /** * Is path fixed? (i.e. not learned, static) */ @@ -548,7 +538,7 @@ typedef int (*ZT1_DataStorePutFunction)(ZT1_Node *,const char *,const void *,uns * on failure. Note that success does not (of course) guarantee packet * delivery. It only means that the packet appears to have been sent. */ -typedef int (*ZT1_WirePacketSendFunction)(ZT1_Node *,const struct sockaddr_storage *,int,const void *,unsigned int); +typedef int (*ZT1_WirePacketSendFunction)(ZT1_Node *,const struct sockaddr_storage *,unsigned int,const void *,unsigned int); /** * Function to send a frame out to a virtual network port @@ -602,7 +592,7 @@ enum ZT1_ResultCode ZT1_Node_processWirePacket( ZT1_Node *node, uint64_t now, const struct sockaddr_storage *remoteAddress, - int linkDesperation, + unsigned int linkDesperation, const void *packetData, unsigned int packetLength, uint64_t *nextCallDeadline); -- cgit v1.2.3