feat(libSceNetCtl): support NET_CTL_INFO_HTTP_PROXY_PORT and validate null in sceNetCtlGetNatInfo #7237
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7237"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by ErenYeager1836 on 2026-10-17T18:37:20Z.
What
This PR provides two improvements to
libSceNetCtl:sceNetCtlGetInfo,NET_CTL_INFO_HTTP_PROXY_PORT(code 21) was already permitted within the valid code range check (code <= NET_CTL_INFO_HTTP_PROXY_PORT), but was unhandled in theswitch (code)statement, falling through to throw a runtime error. Since HTTP proxy configuration is reported as disabled (NET_CTL_HTTP_PROXY_OFF), proxy port is now handled by returning0, matching the disabled proxy state.sceNetCtlGetNatInfo, null pointer verification is added to returnSCE_NET_CTL_ERROR_INVALID_ADDR(0x80412107) whennat_infois null.Guest test
GuestNetCtlis updated to verify that:QueryWord(21)returns0.{5, 6, 7, 8, 9, 10}throw runtime errors while 21 succeeds.sceNetCtlGetNatInfo(nullptr)returnsSCE_NET_CTL_ERROR_INVALID_ADDR.sceNetCtlGetNatInfo(&nat_info)returnsSCE_NET_CTL_ERROR_NOT_CONNECTED.Tested
GuestNetCtlextended with proxy port and NAT info validation assertions.python tools/check_conventions.py --base upstream/mainpasses with no violations.git diff --checkclean.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-17T19:08:03Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/debt/libSceNetCtl.mdL5core/libs/prx/libSceNetCtl/Export.cppL354core/libs/tests/GuestNetCtl.cppL132-140docs/dev/debt/libSceNetCtl.mdL5Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
docs/dev/debt/libSceNetCtl.mdcore/libs/tests/GuestNetCtl.cppcore/libs/prx/libSceNetCtl/Export.cppcore/libs/tests/GuestNetCtl.cppdocs/dev/debt/libSceNetCtl.mdcore/libs/prx/libSceNetCtl/Export.cpp