Clean up PUSH_DIRECT_PATH limits a bit more and make them a bit smarter.

This commit is contained in:
Adam Ierymenko 2015-10-28 09:11:30 -07:00
parent cdc99bfee1
commit da93712846
3 changed files with 27 additions and 16 deletions

View file

@ -42,6 +42,11 @@
namespace ZeroTier {
/**
* Maximum integer value of enum IpScope
*/
#define ZT_INETADDRESS_MAX_SCOPE 7
/**
* Extends sockaddr_storage with friendly C++ methods
*
@ -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
{