Skip to content

Commit

Permalink
Merge pull request #5425 from sepalani/get-interface-opt
Browse files Browse the repository at this point in the history
IP/Top: Implement GetInterfaceOpt hardcoded cases
  • Loading branch information
leoetlino committed May 14, 2017
2 parents 6513408 + 6ba8130 commit 072b24a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Source/Core/Core/IOS/Network/IP/Top.cpp
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 072b24a

Please sign in to comment.