summaryrefslogtreecommitdiff
path: root/node/Packet.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-09-01 16:25:34 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-09-01 16:25:34 -0700
commitf8014413a376551b7853baae81072f969a755e46 (patch)
treef19118672d85310f85cb103af24742af6ca52269 /node/Packet.hpp
parent2d858b05ac8554ba11374fefaeb583a0bbc0546b (diff)
downloadinfinitytier-f8014413a376551b7853baae81072f969a755e46.tar.gz
infinitytier-f8014413a376551b7853baae81072f969a755e46.zip
Add UDP MTU configurability.
Diffstat (limited to 'node/Packet.hpp')
-rw-r--r--node/Packet.hpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/node/Packet.hpp b/node/Packet.hpp
index 5fc631b1..db70e06f 100644
--- a/node/Packet.hpp
+++ b/node/Packet.hpp
@@ -225,12 +225,8 @@
/**
* Packet buffer size (can be changed)
- *
- * The current value is big enough for ZT_MAX_PACKET_FRAGMENTS, the pragmatic
- * packet fragment limit, times the default UDP MTU. Most packets won't be
- * this big.
*/
-#define ZT_PROTO_MAX_PACKET_LENGTH (ZT_MAX_PACKET_FRAGMENTS * ZT_UDP_DEFAULT_PAYLOAD_MTU)
+#define ZT_PROTO_MAX_PACKET_LENGTH (ZT_MAX_PACKET_FRAGMENTS * ZT_DEFAULT_PHYSMTU)
/**
* Minimum viable packet length (a.k.a. header length)