feat(libSceNet): implement sceNetResolverStartNtoaMultipleRecordsEx #1838
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1838"
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 LeandroLP23 on 2026-10-08T21:12:14Z.
What
PS5VR (PPSA99177 v1.2.0, theghostonline/PS5VR, GPL-3.0) stops at start-up on
main:sT4nBQKUPqMissceNetResolverStartNtoaMultipleRecordsEx(tools/nid_names.py). It is also the first stop onmain4b6ab6bbof PPSA99505 Jelly5, PPSA99515 Emby5 and PPSA99997 Nuvio (@SleglJan's run in #1578), and of EVO-PLAYER PPSA99039 v0.11.0 (@hikazey, #1578).SceNetResolverInfoEx(Interop/Net/Socket.cs). It matches shadPS4'sOrbisNetResolverInfoand the offsets the titles read (PS5VRapp/tools/native-app/stubs/eng_dns.c, EVO-PLAYERtools/native-app/stubs/evo_dns.c).sceNetResolverStartNtoa. The callers treat any non-negative return as success, and on an error they fall back tosceNetResolverStartNtoa.sceNetResolverStartNtoaalready does (hostgetaddrinfo, IPv4). It is now a sharedlookup_ipv4that also drops duplicate addresses.sceNetResolverStartNtoabehaves as before and still returns the first address.sceNetResolverStartNtoa's: null hostname or info gives EINVAL, an unknown resolver gives EBADF, a failed lookup givesRESOLVER_ENODNS.flags0 is implemented, which is what these titles pass. Any other value throws with the flags in the message. shadPS4 reads 0x1 as async, 0x10000 as no numeric hosts and 0x1000000/0x2000000 as AAAA lookups, but no hardware data backs that, so it is left for a title that needs it.timeoutandretryare ignored, as insceNetResolverStartNtoa.Overlaps: #1287 (the non-Ex
sceNetResolverStartNtoaMultipleRecords) adds the same 384-byte layout next to this code, and #1502 changes the resolver id check insceNetResolverStartNtoa. Whichever lands second needs a small rebase. #1287 could reuselookup_ipv4.Tested
Windows 11, MinGW-w64 GCC 15.2.0, Release, on
main04477932:6kPnj51T62YfromlibSceVideoOut.prx(sceVideoOutGetResolutionStatus, #1714).guest_sce_net, 3/3. New checks:localhostgives 0 with one or more records,127.xin the first record, family 2, equal counts, and zeroed unused bytes; null hostname and null info give EINVAL; a.invalidhost givesRESOLVER_ENODNS; a destroyed resolver gives EBADF.tools/check_conventions.pypasses.Linux and Windows: fork CI https://github.com/LeandroLP23/AnyPS5/actions/runs/37842913253, all jobs pass (on the same change based on
aa277b38; the rebase onto04477932only brings in a shader commit).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 hikazey on 2026-10-08T21:25:54Z.
Second title: EVO-PLAYER PPSA99039 v0.11.0 (release ZIP, sha256
687c0f0f…5349;eboot.binand the bundledlibc.prxunwrapped from their SELFs). This commit merged ontomain364a56b6, Windows 11 Pro (26200), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, relinked with--windows.main:FAIL: unresolved ELF import sT4nBQKUPqM from libSceNet.prx.FAIL: unresolved ELF import 2G6i6hMIUUY from libkernel.prx(getdents, #1634). That's the stop @SleglJan's table in #1578 lists for PPSA99039 before v0.11.0 added theExcall.The title's own resolver code isn't reached yet (the import resolution fails before it runs), so this shows the import binding only. EVO-PLAYER calls it with
timeout,retryandflags0, so theflags != 0throw won't trigger for it.guest_sce_netinfo->countforced to 0, test keptAI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T21:29:22Z.
Progress report (
ae91d97→f054374)➖ System libraries: 84.76% (+0.0%, +1 implemented functions)
✅ 1 implemented
sceNetResolverStartNtoaMultipleRecordsExImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T21:47:29Z.
Thanks for the second title’s exact import and the ablation result. The PR’s current Build and Conventions checks are green, and this Ex NID remains distinct from #1287’s non-Ex export. One contribution-rule follow-up before merge: the head is 9 commits behind current
main(94b1eecb, merge base0447793). Please rebase onto currentmainand rerun checks on the final head.Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-08T21:56:25Z.
Rebased onto
main94b1eecb; no conflicts.