From c7c3abed0e43b279c0d655c5f61ed1d5fb4a634d Mon Sep 17 00:00:00 2001 From: travisladuke Date: Thu, 12 Sep 2024 13:26:56 -0700 Subject: [PATCH] debugging code --- include/ZeroTierOne.h | 2 +- node/Topology.hpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h index 448234693..fd475959d 100644 --- a/include/ZeroTierOne.h +++ b/include/ZeroTierOne.h @@ -84,7 +84,7 @@ extern "C" { /** * Minimum UDP payload size allowed */ -#define ZT_MIN_PHYSMTU 1400 +#define ZT_MIN_PHYSMTU 510 /** * Maximum physical interface name length. This number is gigantic because of Windows. diff --git a/node/Topology.hpp b/node/Topology.hpp index 53c2b6d5b..c0f659ea8 100644 --- a/node/Topology.hpp +++ b/node/Topology.hpp @@ -424,6 +424,8 @@ class Topology pc.mtu = ZT_MAX_PHYSMTU; } + fprintf(stderr,"phy mtu %d\n",pc.mtu); + cpaths[*(reinterpret_cast(pathNetwork))] = pc; } else { cpaths.erase(*(reinterpret_cast(pathNetwork)));