diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-28 09:11:30 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-28 09:11:30 -0700 |
| commit | da9371284625d2481ed496921505c8afd2dae1f0 (patch) | |
| tree | 6fe6ab8203b9e7f7c3c81148afea2a6a1018b623 /node/InetAddress.hpp | |
| parent | cdc99bfee10ac58a8dab1aabcb85e69f3862b7ad (diff) | |
| download | infinitytier-da9371284625d2481ed496921505c8afd2dae1f0.tar.gz infinitytier-da9371284625d2481ed496921505c8afd2dae1f0.zip | |
Clean up PUSH_DIRECT_PATH limits a bit more and make them a bit smarter.
Diffstat (limited to 'node/InetAddress.hpp')
| -rw-r--r-- | node/InetAddress.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/node/InetAddress.hpp b/node/InetAddress.hpp index fcbed4b1..5e5eb06e 100644 --- a/node/InetAddress.hpp +++ b/node/InetAddress.hpp @@ -43,6 +43,11 @@ namespace ZeroTier { /** + * Maximum integer value of enum IpScope + */ +#define ZT_INETADDRESS_MAX_SCOPE 7 + +/** * Extends sockaddr_storage with friendly C++ methods * * This is basically a "mixin" for sockaddr_storage. It adds methods and @@ -66,7 +71,8 @@ struct InetAddress : public sockaddr_storage * IP address scope * * Note that these values are in ascending order of path preference and - * MUST remain that way or Path must be changed to reflect. + * MUST remain that way or Path must be changed to reflect. Also be sure + * to change ZT_INETADDRESS_MAX_SCOPE if the max changes. */ enum IpScope { |
