Clean up PUSH_DIRECT_PATH limits a bit more and make them a bit smarter.
This commit is contained in:
parent
cdc99bfee1
commit
da93712846
3 changed files with 27 additions and 16 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue