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

@ -347,11 +347,6 @@
*/
#define ZT_DIRECT_PATH_PUSH_INTERVAL 120000
/**
* Maximum number of endpoints to contact per address type (to limit pushes like GitHub issue #235)
*/
#define ZT_PUSH_DIRECT_PATHS_MAX_ENDPOINTS_PER_TYPE 5
/**
* Time horizon for push direct paths cutoff
*/
@ -366,6 +361,11 @@
*/
#define ZT_PUSH_DIRECT_PATHS_CUTOFF_LIMIT 5
/**
* Maximum number of paths per IP scope (e.g. global, link-local) and family (e.g. v4/v6)
*/
#define ZT_PUSH_DIRECT_PATHS_MAX_PER_SCOPE_AND_FAMILY 1
/**
* A test pseudo-network-ID that can be joined
*