summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-04-03 16:52:53 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-04-03 16:52:53 -0700
commit6eb9289367a1c8661d38895558b0f01eac0ddd5e (patch)
tree32b239f50c446a52ab97de32f60708819f6078bc /include
parentee0f56355bd7b1d2798a750fb02a975b526dd9cf (diff)
downloadinfinitytier-6eb9289367a1c8661d38895558b0f01eac0ddd5e.tar.gz
infinitytier-6eb9289367a1c8661d38895558b0f01eac0ddd5e.zip
Bunch more cleanup, improvements to NAT traversal logic, finished updating Switch.
Diffstat (limited to 'include')
-rw-r--r--include/ZeroTierOne.h18
1 files changed, 4 insertions, 14 deletions
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;
/**
@@ -394,11 +389,6 @@ typedef struct
uint64_t bytesReceived;
/**
- * This path's desperation metric (higher == worse)
- */
- int desperation;
-
- /**
* Is path fixed? (i.e. not learned, static)
*/
int fixed;
@@ -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);