diff options
author | Joseph Henry <josephjah@gmail.com> | 2018-06-14 16:34:45 -0700 |
---|---|---|
committer | Joseph Henry <josephjah@gmail.com> | 2018-06-14 16:34:45 -0700 |
commit | 17fbb020e733fab8d8be933bb4981927015a10f5 (patch) | |
tree | 65147665e41c3c60b44b916ff4825afb07c9836c /include/ZeroTierOne.h | |
parent | f8005b88adfe93af477528bec748882da8fa9bea (diff) | |
download | infinitytier-17fbb020e733fab8d8be933bb4981927015a10f5.tar.gz infinitytier-17fbb020e733fab8d8be933bb4981927015a10f5.zip |
Added multipath field to zerotier-cli status output. Adjusted how path estimates are computed and cached
Diffstat (limited to 'include/ZeroTierOne.h')
-rw-r--r-- | include/ZeroTierOne.h | 57 |
1 files changed, 50 insertions, 7 deletions
diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h index b3927c2e..a100afd9 100644 --- a/include/ZeroTierOne.h +++ b/include/ZeroTierOne.h @@ -449,13 +449,6 @@ enum ZT_MultipathMode * Will cease sending traffic over links that appear to be stale. */ ZT_MULTIPATH_PROPORTIONALLY_BALANCED = 2, - - /** - * Traffic is allocated across a user-defined interface/allocation - * - * Will cease sending traffic over links that appear to be stale. - */ - ZT_MULTIPATH_MANUALLY_BALANCED = 3 }; /** @@ -1222,6 +1215,56 @@ typedef struct uint64_t trustedPathId; /** + * One-way latency + */ + float latency; + + /** + * How much latency varies over time + */ + float packetDelayVariance; + + /** + * How much observed throughput varies over time + */ + float throughputDisturbCoeff; + + /** + * Packet Error Ratio (PER) + */ + float packetErrorRatio; + + /** + * Packet Loss Ratio (PLR) + */ + float packetLossRatio; + + /** + * Stability of the path + */ + float stability; + + /** + * Current throughput (moving average) + */ + uint64_t throughput; + + /** + * Maximum observed throughput for this path + */ + uint64_t maxThroughput; + + /** + * Percentage of traffic allocated to this path + */ + float allocation; + + /** + * Name of physical interface (for monitoring) + */ + char *ifname; + + /** * Is path expired? */ int expired; |