summaryrefslogtreecommitdiff
path: root/node/Cluster.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-11-10 17:37:38 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-11-10 17:37:38 -0800
commit451b8aa7b293be0bdd62a0cc1c292bfe5b3de751 (patch)
treec30029e6677a075b38f1cd92b7c8e6f87816f70b /node/Cluster.cpp
parent53731acf51ffecafc52779cc8942b7fc4c143299 (diff)
downloadinfinitytier-451b8aa7b293be0bdd62a0cc1c292bfe5b3de751.tar.gz
infinitytier-451b8aa7b293be0bdd62a0cc1c292bfe5b3de751.zip
Query both root and network controller for multicast last resort GATHER.
Diffstat (limited to 'node/Cluster.cpp')
-rw-r--r--node/Cluster.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/node/Cluster.cpp b/node/Cluster.cpp
index 0a7de93d..af9ab854 100644
--- a/node/Cluster.cpp
+++ b/node/Cluster.cpp
@@ -55,33 +55,6 @@
#include "Node.hpp"
#include "Array.hpp"
-/**
- * Chunk size for allocating queue entries
- *
- * Queue entries are allocated in chunks of this many and are added to a pool.
- * ZT_CLUSTER_MAX_QUEUE_GLOBAL must be evenly divisible by this.
- */
-#define ZT_CLUSTER_QUEUE_CHUNK_SIZE 32
-
-/**
- * Maximum number of chunks to ever allocate
- *
- * This is a global sanity limit to prevent resource exhaustion attacks. It
- * works out to about 600mb of RAM. You'll never see this on a normal edge
- * node. We're unlikely to see this on a root server unless someone is DOSing
- * us. In that case cluster relaying will be affected but other functions
- * should continue to operate normally.
- */
-#define ZT_CLUSTER_MAX_QUEUE_CHUNKS 8194
-
-/**
- * Max data per queue entry
- *
- * If we ever support larger transport MTUs this must be increased. The plus
- * 16 is just a small margin and has no special meaning.
- */
-#define ZT_CLUSTER_SEND_QUEUE_DATA_MAX (ZT_UDP_DEFAULT_PAYLOAD_MTU + 16)
-
namespace ZeroTier {
static inline double _dist3d(int x1,int y1,int z1,int x2,int y2,int z2)