diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-03-01 14:36:52 -0800 | 
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-03-01 14:36:52 -0800 | 
| commit | 1d39be61b267a85adebeee9e979bd1d84f55da3c (patch) | |
| tree | 2fa5efbe2406a9a60686c1de422ff2c574802ba5 /include/ZeroTierOne.h | |
| parent | 2bf9145ae65385bf968542619ffcf204cf6241d8 (diff) | |
| download | infinitytier-1d39be61b267a85adebeee9e979bd1d84f55da3c.tar.gz infinitytier-1d39be61b267a85adebeee9e979bd1d84f55da3c.zip | |
ZeroTier now has link quality measurement. We are not using this yet but decided to put it in to prep for future QoS support and SD-WAN stuff.
Diffstat (limited to 'include/ZeroTierOne.h')
| -rw-r--r-- | include/ZeroTierOne.h | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h index 2c141f47..5b478afb 100644 --- a/include/ZeroTierOne.h +++ b/include/ZeroTierOne.h @@ -180,6 +180,11 @@ extern "C" {  #define ZT_CLUSTER_MAX_MESSAGE_LENGTH (1500 - 48)  /** + * Maximum value for link quality (min is 0) + */ +#define ZT_PATH_LINK_QUALITY_MAX 0xff + +/**   * Packet characteristics flag: packet direction, 1 if inbound 0 if outbound   */  #define ZT_RULE_PACKET_CHARACTERISTICS_INBOUND 0x8000000000000000ULL @@ -1037,6 +1042,11 @@ typedef struct  	uint64_t trustedPathId;  	/** +	 * Path link quality from 0 to 255 (always 255 if peer does not support) +	 */ +	int linkQuality; + +	/**  	 * Is path expired?  	 */  	int expired; | 
