diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-09-01 16:25:34 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-09-01 16:25:34 -0700 |
commit | f8014413a376551b7853baae81072f969a755e46 (patch) | |
tree | f19118672d85310f85cb103af24742af6ca52269 /node/Packet.hpp | |
parent | 2d858b05ac8554ba11374fefaeb583a0bbc0546b (diff) | |
download | infinitytier-f8014413a376551b7853baae81072f969a755e46.tar.gz infinitytier-f8014413a376551b7853baae81072f969a755e46.zip |
Add UDP MTU configurability.
Diffstat (limited to 'node/Packet.hpp')
-rw-r--r-- | node/Packet.hpp | 6 |
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) |