From 6ba8130e111c7e74341cbc72b5600176ec95ed4c Mon Sep 17 00:00:00 2001 From: Sepalani Date: Sun, 14 May 2017 21:47:41 +0100 Subject: [PATCH] IP/Top: Implement GetInterfaceOpt hardcoded cases --- Source/Core/Core/IOS/Network/IP/Top.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Source/Core/Core/IOS/Network/IP/Top.cpp b/Source/Core/Core/IOS/Network/IP/Top.cpp index 91e4d81526..0db0b32465 100644 --- a/Source/Core/Core/IOS/Network/IP/Top.cpp +++ b/Source/Core/Core/IOS/Network/IP/Top.cpp @@ -804,6 +804,10 @@ IPCCommandResult NetIPTop::HandleGetInterfaceOptRequest(const IOCtlVRequest& req Memory::Write_U32(1, request.io_vectors[0].address); break; + case 0x3001: // hardcoded value + Memory::Write_U32(0x10, request.io_vectors[0].address); + break; + case 0x4002: // ip addr numberHandle Memory::Write_U32(1, request.io_vectors[0].address); break; @@ -815,6 +819,26 @@ IPCCommandResult NetIPTop::HandleGetInterfaceOptRequest(const IOCtlVRequest& req Memory::Write_U32(10 << 24 | 0 << 16 | 255 << 8 | 255, request.io_vectors[0].address + 8); break; + case 0x4005: // hardcoded value + Memory::Write_U32(0x20, request.io_vectors[0].address); + break; + + case 0x6003: // hardcoded value + Memory::Write_U32(0x80, request.io_vectors[0].address); + break; + + case 0x600a: // hardcoded value + Memory::Write_U32(0x80, request.io_vectors[0].address); + break; + + case 0x600c: // hardcoded value + Memory::Write_U32(0x80, request.io_vectors[0].address); + break; + + case 0xb002: // hardcoded value + Memory::Write_U32(2, request.io_vectors[0].address); + break; + default: ERROR_LOG(IOS_NET, "Unknown param2: %08X", param2); break;