From 1ebcbd5b0ea7af3c4230c5d506da52fa28ed6c15 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Mon, 27 Jun 2016 15:06:15 -0400 Subject: [PATCH] use smaller mtu for meshnet mode --- SSUData.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SSUData.h b/SSUData.h index 02135350..f5e52947 100644 --- a/SSUData.h +++ b/SSUData.h @@ -18,7 +18,11 @@ namespace transport { const size_t SSU_MTU_V4 = 1484; + #ifdef MESHNET + const size_t SSU_MTU_V6 = 1304; + #else const size_t SSU_MTU_V6 = 1472; + #endif const size_t IPV4_HEADER_SIZE = 20; const size_t IPV6_HEADER_SIZE = 40; const size_t UDP_HEADER_SIZE = 8;