summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoseph Henry <[email protected]>2020-07-27 23:01:12 -0700
committerJoseph Henry <[email protected]>2020-07-27 23:01:12 -0700
commit9f4985b11a5a4f93c9435094adfce378d573c7a6 (patch)
treec6d60945082ec60dead4bcc30bd7516e8372ad94 /include
parentc92e030a4bf5443c3e0765645ef7bf32130ec4c0 (diff)
Add basic bond health status reporting (listbonds)
Diffstat (limited to 'include')
-rw-r--r--include/ZeroTierOne.h33
1 files changed, 28 insertions, 5 deletions
diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h
index afa75c29..e1c8f7df 100644
--- a/include/ZeroTierOne.h
+++ b/include/ZeroTierOne.h
@@ -1475,18 +1475,41 @@ typedef struct
enum ZT_PeerRole role;
/**
- * Number of paths (size of paths[])
+ * Whether a multi-link bond has formed
*/
- unsigned int pathCount;
+ bool isBonded;
/**
- * Whether multiple paths to this peer are bonded
+ * The bonding policy used to bond to this peer
*/
- bool isBonded;
-
int bondingPolicy;
/**
+ * The health status of the bond to this peer
+ */
+ bool isHealthy;
+
+ /**
+ * The number of links that comprise the bond to this peer that are considered alive
+ */
+ int numAliveLinks;
+
+ /**
+ * The number of links that comprise the bond to this peer
+ */
+ int numTotalLinks;
+
+ /**
+ * The user-specified bond template name
+ */
+ char customBondName[32];
+
+ /**
+ * Number of paths (size of paths[])
+ */
+ unsigned int pathCount;
+
+ /**
* Known network paths to peer
*/
ZT_PeerPhysicalPath paths[ZT_MAX_PEER_NETWORK_PATHS];