feat(libSceNet): reverse-resolve IPv6 addresses in sceNetResolverStartAton6 #7991
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7991"
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:06:39Z.
What
sceNetResolverStartAton6threwnot implemented, and its debt entry listed the signature as unknown. SharpProsperoSocket.csdocuments it as the IPv6 counterpart ofsceNetResolverStartAton:(rid, addr, hostname, len, timeout, retry, flags), which reverse-resolves the 16-byte address and writes the name intohostname,lenbeing the size of that buffer.sceNetResolverStartAtonandsceNetResolverStartAton6now share one reverse lookup over the host resolver (getnameinfowithNI_NAMEREQD).Aton6fills asockaddr_in6whereAtonfills asockaddr_in;Aton's behaviour is unchanged.Aton6follows the argument checks, errors and abort handlingAtonalready has. A null address, a null buffer or alenof 0 or less returnsEINVAL, and an unknown resolverEBADF. An address with no name, or a name that does not fit inlenbytes, returnsRESOLVER_ENODNS(0x804101E1) and leaves the buffer untouched. Abort flag 2 (ATON preservation) fails the next call withEINTR, andsceNetResolverGetErrorreports each result.sceNetResolverStartNtoa6, because their meaning is unknown. Timeout and retry are ignored, as in the other resolver calls.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 skips before its resolver checks:::1resolves to the same name the host'sgetnameinforeturns (ip6-localhosthere).0x804101E1without writing.0x80410104and errno 4 and leaves the buffer untouched; abort flag 1 does not affect it.len0 return0x80410116, an unknown resolver returns0x80410109, and flags 1, 0x10000 and -1 throw.main, where the call throws. Copying 4 bytes of the address instead of 16 also makes it fail.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 changes the resolver functions.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:07:20Z.
Progress report (
7a015c0→87bd71d)📈 System libraries: 79.85% (+0.02%, +1 implemented functions)
✅ 1 implemented
sceNetResolverStartAton6Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T17:33:30Z.
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.md