feat(libSceNet): implement sceNetGetDnsInfo #8268
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8268"
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 Athen2045 on 2026-10-20T07:52:04Z.
What
Implements
sceNetGetDnsInfo(info, flags). It writes the host's first two IPv4 DNS servers into the two slots ofinfo, in network byte order, and returns the number of servers (0 to 2). Unused slots are zeroed.sceNetGetDnsInfo(&info, 0)with{primary_dns, secondary_dns}and uses the result as the server count. OpenOrbis Net.h declaresint32_t sceNetGetDnsInfo(OrbisNetDnsInfo*, int32_t flags). SharpProspero has the same two-address struct. Not verified on PS5 hardware.sceNetCtlGetInfouses forPRIMARY_DNSandSECONDARY_DNS, so the two libraries agree. libSceNetCtl exportsNetCtlHostDnsServers_nid_no_patchand libSceNet links libSceNetCtl, as libSceAudioOut links libScePad. There is no made-up default server.infothrow, because their console results are unknown.sceNetSetDnsInfo, which SharpProspero describes as setting fallback servers (its effect on Get is unknown), and the Dns6 pair (the only source is shadPS4). They still throw.Tested
Windows 11 (26300), WinLibs GCC 15.2.0, on
main3fd1cc393.guest_sce_net: the result matchessceNetCtlGetInfo(17)and(18)slot by slot, nothing is written past the two slots, unused slots are zero, and nonzero flags and a null info throw. This host has DNS servers configured, so the comparison runs against real addresses. With the two slots swapped on purpose, the test fails.mainon this machine:conventions_env_referenceandconventions_blob_reads(the git helper in their temporary repositories),windows_import_modules(msvcrt stdout probe) andagc_driver_pass_input_hazard(NVIDIA GPU).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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T08:08:17Z.
Some 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.
core/libs/prx/libSceNet/CMakeLists.txtcore/libs/prx/libSceNet/Export.cppcore/libs/tests/GuestSceNet.cppdocs/dev/debt/libSceNet.mdcore/libs/prx/libSceNet/CMakeLists.txtcore/libs/tests/GuestSceNet.cppcore/libs/prx/libSceNet/Export.cppcore/libs/prx/libSceNet/Export.cppcore/libs/prx/libSceNetCtl/Export.cppcore/libs/prx/libSceNet/Export.cppcore/libs/tests/GuestSceNet.cppdocs/dev/debt/libSceNet.md