mirror of https://github.com/PCSX2/pcsx2.git
DEV9: Sockets, Treat UDP connections with nearby src/dst ports as fixed
Only doing this for equal ports proved too strict for some games.
This commit is contained in:
parent
ccc1874a4b
commit
64a8e66bac
|
@ -563,7 +563,7 @@ bool SocketAdapter::SendUDP(ConnectionKey Key, IP_Packet* ipPkt)
|
||||||
{
|
{
|
||||||
UDP_Session* s = nullptr;
|
UDP_Session* s = nullptr;
|
||||||
|
|
||||||
if (udp.sourcePort == udp.destinationPort || //Used for LAN games that assume the destination port
|
if (abs(udp.sourcePort - udp.destinationPort) <= 10 || //Used for games that assume the destination/source port
|
||||||
ipPkt->destinationIP == dhcpServer.broadcastIP || //Broadcast packets
|
ipPkt->destinationIP == dhcpServer.broadcastIP || //Broadcast packets
|
||||||
ipPkt->destinationIP == IP_Address{{{255, 255, 255, 255}}} || //Limited Broadcast packets
|
ipPkt->destinationIP == IP_Address{{{255, 255, 255, 255}}} || //Limited Broadcast packets
|
||||||
(ipPkt->destinationIP.bytes[0] & 0xF0) == 0xE0) //Multicast address start with 0b1110
|
(ipPkt->destinationIP.bytes[0] & 0xF0) == 0xE0) //Multicast address start with 0b1110
|
||||||
|
|
Loading…
Reference in New Issue