feat(libSceNet): implement sceNetResolverStartNtoaMultipleRecords #1287
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1287"
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 KSWORK2001 on 2026-10-07T22:20:49Z.
What
sceNetResolverStartNtoaMultipleRecordsthrew as unimplemented. The(rid, hostname, records, timeout, retry, flags)signature, the 384-byte records layout (10 records of a 16-byte address union,afand padding, thenrecords,recordsv4and padding) and the cleared-then-filled output follow the shadPS4 reimplementation of the PS4 library, which has a body and a test for it; not confirmed on a PS5 title.The lookup delegates to host DNS as
sceNetResolverStartNtoadoes: IPv4-only, one entry per address with duplicates dropped, at most 10 records,af2 per record andrecordsv4 == records. Argument checks follow the sibling (EINVALfor a null hostname or records,EBADFfor an unknown resolver, the hostname must be 1..255 bytes as the SDK'sSCE_NET_RESOLVER_HOSTNAME_LEN_MAX), and a failed lookup returnsRESOLVER_ENODNSand records it forsceNetResolverGetError. As for the sibling, timeout, retry and flags are ignored (shadPS4 runs the ASYNC flag on a worker thread and skips numeric hostnames for the 0x10000 flag, and separates four resolver error codes); all recorded in TechnicalDebt.tools/pr_overlap.pyreports #1119 (structures added at the same spot inGuestSceNet.cpp; no shared exports) and #1158, #1206 (neighbouringTechnicalDebt.mdline). No dependency on any of them; happy to rebase once one lands.Tested
Windows 11, MinGW-w64 GCC 15.2.0 (WinLibs
x86_64-ucrt-posix-sehr7), Ninja, based on6c48acec(rebased todf16c4c2before pushing).ctest -R guest_sce_net: passed with the new checks -localhostresolves to 1..10 records withaf2 and a 127.x address, null hostname / null records / empty hostname returnEINVAL,.invalidreturnsRESOLVER_ENODNSand sets the resolver error, a destroyed resolver returnsEBADF.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T03:26:07Z.
PPSA14632 imports
sceNetResolverStartNtoaMultipleRecords(#734). Does it stop there on main? With the title ID and the log line this can go in; otherwise I'll close it until a title does.Imported from boykopovar/AnyPS5. Originally posted by hikazey on 2026-10-08T20:57:30Z.
Title evidence for this family.
sceNetResolverStartNtoaMultipleRecordsExis the first stop onmain4b6ab6bbfor five titles:--windowsand run on Windows 11:FAIL: unresolved ELF import sT4nBQKUPqM from libSceNet.prx.These titles import the
Exvariant, not the one this PR implements, but the layout is the same. EVO-PLAYER's source (tools/native-app/stubs/evo_dns.c, GPL) declaresand reads the result as "SceNetResolverInfoEx, as SharpProspero lays it out": ten 32-byte records (16-byte address union,
intfamily at +16, 12 reserved), the record count at 320 and the IPv4 count at 324, 384 bytes in all. That's this PR'sNetResolverRecords. It calls it withtimeout,retryandflagsall 0, clears 384 bytes, puts a canary after them and checks it, and falls back tosceNetResolverStartNtoaif the call fails or the result doesn't parse.Would you like to add
Exhere, with the same body and layout? Or should it be a separate pull request that depends on this one? I can do the follow-up and check it with EVO-PLAYER, which should then get past the resolver to its next stop. Either way, this PR needs a rebase first.AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-08T21:00:04Z.
I have
sceNetResolverStartNtoaMultipleRecordsExready as a separate PR: same 384-byte layout, the lookup shared withsceNetResolverStartNtoathrough alookup_ipv4helper that this PR's non-Ex call could reuse. With it PS5VR (PPSA99177) gets pastsT4nBQKUPqMon Windows and stops atsceVideoOutGetResolutionStatus(#1714). I'll open it once its fork CI finishes, in the next few minutes, so @KSWORK2001 doesn't need to add it here.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T21:11:25Z.
The latest runtime evidence in #1578 is for
sceNetResolverStartNtoaMultipleRecordsEx, which is a distinct NID from the non-Ex export this PR implements. The earlier maintainer question about whether PPSA14632 stops on this exact non-Ex import (title ID plus the unresolved-import log line) still has no answer in this PR, so the new Ex evidence does not settle this PR’s title relevance. Please add that exact evidence before treating the change as a current compatibility blocker. If continuing, this headc88e9afis 558 commits behind currentmain0447793, is marked dirty, and currently has no checks; rebase and rerun upstream Build/Conventions on the final head.Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-08T21:12:23Z.
Opened as #1838.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T04:53:31Z.
Progress report (
f145139→60f5be8)📈 System libraries: 84.79% (+0.03%, +1 implemented functions)
✅ 1 implemented
sceNetResolverStartNtoaMultipleRecordsImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T09:29:08Z.
Closing: no title is shown stopping at
sceNetResolverStartNtoaMultipleRecordson main. The titles in #1578 stop at theExvariant, which #1838 now implements. Reopen when the non-Ex call is a title's next stop on main, with the log line.Pull request closed