2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-17 17:17:56 +03:00

NET_IPSocket: Disabled adding DF flag on some linux

This commit is contained in:
WPMGPRoSToTeMa 2016-01-12 18:47:37 +03:00
parent cb59c433c7
commit 308ca9936a

View File

@ -1637,6 +1637,16 @@ int NET_IPSocket(char *net_interface, int port, qboolean multicast)
#endif // _WIN32 #endif // _WIN32
Con_DPrintf("WARNING: UDP_OpenSocket: port %d setsockopt IP_MULTICAST_LOOP: %s\n", port, NET_ErrorString(err)); Con_DPrintf("WARNING: UDP_OpenSocket: port %d setsockopt IP_MULTICAST_LOOP: %s\n", port, NET_ErrorString(err));
} }
#if defined __linux__ && defined REHLDS_FIXES
i = IP_PMTUDISC_DONT;
if (setsockopt(newsocket, IPPROTO_IP, IP_MTU_DISCOVER, (char *)&i, sizeof(i)) == SOCKET_ERROR)
{
err = errno;
Con_Printf("WARNING: UDP_OpenSocket: port %d setsockopt IP_MTU_DISCOVER: %s\n", port, NET_ErrorString(err));
}
#endif
return newsocket; return newsocket;
} }