IP/Top: Implement GetInterfaceOpt hardcoded cases

This commit is contained in:
Sepalani 2017-05-14 21:47:41 +01:00
parent 59dab8b15c
commit 6ba8130e11
1 changed files with 24 additions and 0 deletions

View File

@ -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;