DEV9: Correct a few socket logs

This commit is contained in:
TheLastRar 2023-01-26 19:11:11 +00:00 committed by refractionpcsx2
parent 4fec896378
commit ccc1874a4b
3 changed files with 4 additions and 4 deletions

View File

@ -168,7 +168,7 @@ namespace Sessions
} }
return nullptr; return nullptr;
} }
DevCon.WriteLn("DEV9: TCP: [SRV]Sending %d bytes", recived); DevCon.WriteLn("DEV9: TCP: [SRV] Sending %d bytes", recived);
PayloadData* recivedData = new PayloadData(recived); PayloadData* recivedData = new PayloadData(recived);
memcpy(recivedData->data.get(), buffer.get(), recived); memcpy(recivedData->data.get(), buffer.get(), recived);

View File

@ -116,7 +116,7 @@ namespace Sessions
if (ret == SOCKET_ERROR) if (ret == SOCKET_ERROR)
{ {
hasData = false; hasData = false;
Console.WriteLn("DEV9: UDP: select failed. Error Code: %d", Console.Error("DEV9: UDP: select failed. Error Code: %d",
#ifdef _WIN32 #ifdef _WIN32
WSAGetLastError()); WSAGetLastError());
#elif defined(__POSIX__) #elif defined(__POSIX__)

View File

@ -582,7 +582,7 @@ bool SocketAdapter::SendUDP(ConnectionKey Key, IP_Packet* ipPkt)
fKey.ps2Port = udp.sourcePort; fKey.ps2Port = udp.sourcePort;
fKey.srvPort = 0; fKey.srvPort = 0;
Console.WriteLn("DEV9: Socket: Creating New UDPFixedPort with port %d", udp.destinationPort); Console.WriteLn("DEV9: Socket: Creating New UDPFixedPort with port %d", udp.sourcePort);
fPort = new UDP_FixedPort(fKey, adapterIP, udp.sourcePort); fPort = new UDP_FixedPort(fKey, adapterIP, udp.sourcePort);
fPort->AddConnectionClosedHandler([&](BaseSession* session) { HandleFixedPortClosed(session); }); fPort->AddConnectionClosedHandler([&](BaseSession* session) { HandleFixedPortClosed(session); });
@ -594,7 +594,7 @@ bool SocketAdapter::SendUDP(ConnectionKey Key, IP_Packet* ipPkt)
fixedUDPPorts.Add(udp.sourcePort, fPort); fixedUDPPorts.Add(udp.sourcePort, fPort);
} }
Console.WriteLn("DEV9: Socket: Creating New UDP Connection from FixedPort %d", udp.destinationPort); Console.WriteLn("DEV9: Socket: Creating New UDP Connection from FixedPort %d to %d", udp.sourcePort, udp.destinationPort);
s = fPort->NewClientSession(Key, s = fPort->NewClientSession(Key,
ipPkt->destinationIP == dhcpServer.broadcastIP || ipPkt->destinationIP == IP_Address{{{255, 255, 255, 255}}}, ipPkt->destinationIP == dhcpServer.broadcastIP || ipPkt->destinationIP == IP_Address{{{255, 255, 255, 255}}},
(ipPkt->destinationIP.bytes[0] & 0xF0) == 0xE0); (ipPkt->destinationIP.bytes[0] & 0xF0) == 0xE0);