From 4b50dd0eadcdad00e6e2f1d968161b3330a56a66 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Thu, 16 Apr 2026 15:54:05 -0400 Subject: [PATCH] we are hitting a hard limit so do this for now. Packet fragmenting is bad since many firewalls consider it bad traffic, we are going to have to rework stuff around this fact later. --- src/d_net.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/d_net.c b/src/d_net.c index 18ca01f69..deff99de8 100644 --- a/src/d_net.c +++ b/src/d_net.c @@ -1245,7 +1245,8 @@ boolean D_CheckNetGame(void) #if 0 software_MAXPACKETLENGTH = hardware_MAXPACKETLENGTH; #else - software_MAXPACKETLENGTH = 1500; + // MTU, IPV4, UDP header. + software_MAXPACKETLENGTH = 1500 - 20 - 8; #endif if (M_CheckParm("-packetsize")) {