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.
This commit is contained in:
NepDisk 2026-04-16 15:54:05 -04:00
parent c581e5c5e1
commit 4b50dd0ead

View file

@ -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"))
{