feat(libSceNet): accept sceNetClearDnsCache with no library DNS cache to drop #8013
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8013"
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 MarrasFederico on 2026-10-19T17:42:25Z.
What
sceNetClearDnsCachethrewnot implemented, and its debt entry listed the signature as unknown. SharpProsperoSocket.csdocuments it asint sceNetClearDnsCache(int flags), which drops the resolver's DNS cache.Every
sceNetResolverStart*lookup in AnyPS5 goes to the host resolver, so the library keeps no cache of its own, and a later lookup already sees what the host resolver returns.sceNetClearDnsCache(0)therefore returns 0 without doing anything, and leaves the host's own cache alone. Nonzero flags throw, as insceNetResolverStartNtoa6, because their meaning is unknown. The debt entry now records this.Tested
Ubuntu 26.04.1, kernel 7.0.0-38, GCC 15.2.0, Release, full build with
BUILD_TESTING=ON. Windows was not compiled. No title was run.guest_sce_net, run in a network namespace with IPv6 onlo(unshare -rn), because on this host IPv6 is disabled onloand the test aborts before its resolver checks (#7987):sceNetClearDnsCache(0)returns 0.localhoston the same resolver still returns 127.0.0.1, andsceNetResolverGetErrorreports 0.main, where the call throws.tools/check_conventions.py --base origin/mainpasses.tools/pr_overlap.pyfinds no conflicting lines. It could not compare #5836, #6044, #7201 and #7332, which conflict withmain; none of them changessceNetClearDnsCache.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-19T17:43:08Z.
Progress report (
e90a1d1→1537dff)📈 System libraries: 79.9% (+0.02%, +1 implemented functions)
✅ 1 implemented
sceNetClearDnsCacheImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T17:57:10Z.
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/Export.cppcore/libs/tests/GuestSceNet.cppdocs/dev/debt/libSceNet.mdcore/libs/tests/GuestSceNet.cppcore/libs/prx/libSceNet/Export.cppcore/libs/prx/libSceNet/Export.cppcore/libs/tests/GuestSceNet.cppcore/libs/prx/libSceNet/Export.cppcore/libs/tests/GuestSceNet.cppdocs/dev/debt/libSceNet.mdcore/libs/prx/libSceNet/Export.cppdocs/dev/debt/libSceNet.mdImported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-19T22:30:14Z.
Windows run (the description says Windows was not compiled): Windows 11 Home 26300, Ryzen 5 9600X, WinLibs GCC 15.2.0, Release, BUILD_TESTING=ON. This PR merged onto
main9127ea36d.guest_sce_netpasses 18/20 over two batches. The two failures are the load flake this test also shows onmain; plainmainpassed 6/6 in the same session.libSceNet/Export.cppfrommain, new test kept): 0/18 pass.(int flags)signature matches SharpProspero Socket.cs L928-L930.AI-assisted: yes (Claude Code); results above were run on this machine.