summaryrefslogtreecommitdiff
path: root/node/Node.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-09-01 10:43:44 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-09-01 10:43:44 -0700
commitb1fb020aea80ea70ed801b876ad01beb09e218e1 (patch)
tree7b26cfb7d850a22734df91b44f57224b9636e4ec /node/Node.cpp
parent02ed84774c2b9eb23995d722349476a1e5a6870f (diff)
downloadinfinitytier-b1fb020aea80ea70ed801b876ad01beb09e218e1.tar.gz
infinitytier-b1fb020aea80ea70ed801b876ad01beb09e218e1.zip
Raise chunk size to max packet size for network configs. Chunking breaks really ancient clients, so this helps them live a little longer. No real downside for new clients.
Diffstat (limited to 'node/Node.cpp')
-rw-r--r--node/Node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Node.cpp b/node/Node.cpp
index 09260172..34609fd4 100644
--- a/node/Node.cpp
+++ b/node/Node.cpp
@@ -592,7 +592,7 @@ void Node::ncSendConfig(uint64_t nwid,uint64_t requestPacketId,const Address &de
const unsigned int totalSize = dconf->sizeBytes();
unsigned int chunkIndex = 0;
while (chunkIndex < totalSize) {
- const unsigned int chunkLen = std::min(totalSize - chunkIndex,(unsigned int)(ZT_UDP_DEFAULT_PAYLOAD_MTU - (ZT_PACKET_IDX_PAYLOAD + 256)));
+ const unsigned int chunkLen = std::min(totalSize - chunkIndex,(unsigned int)(ZT_PROTO_MAX_PACKET_LENGTH - (ZT_PACKET_IDX_PAYLOAD + 256)));
Packet outp(destination,RR->identity.address(),(requestPacketId) ? Packet::VERB_OK : Packet::VERB_NETWORK_CONFIG);
if (requestPacketId) {
outp.append((unsigned char)Packet::VERB_NETWORK_CONFIG_REQUEST);