feat(libSceNet): implement sceNetResolverStartNtoa6 #5411
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5411"
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 ps54all on 2026-10-13T19:13:51Z.
What
sceNetResolverStartNtoa6resolves a host name to its first IPv6 address and writes the 16-byte address. It was not exported, so a title that imports it fails to load (unresolved ELF import zl35YNs9jnI from libSceNet.prx).lookup_host);sceNetResolverStartNtoaand the multiple-record variants keep their behaviour and go through it withAF_INET.EINTR),sceNetResolverGetError, and theRESOLVER_ENODNSerror for a failed lookup. A name without an IPv6 address fails the same way.sceNetResolverStartNtoa. Nonzero flags throw, since their meaning for this call is not known.docs/dev/debt/libSceNet.mdrecords the assumptions: signature taken fromsceNetResolverStartNtoa, no IPv4-mapped fallback, unverified on hardware.Tested
Windows 11, RTX 3080, WinLibs GCC 15.2.0 r7, Release.
guest_sce_netgains checks:::1resolves to::1, a null name returnsEINVAL(0x80410116), and an IPv4 literal (no IPv6 address) returns and recordsRESOLVER_ENODNS(0x804101E1). Without the implementation the test does not link (undefined reference to sceNetResolverStartNtoa6). With it the test passes (exit 0). On this machine the whole test takes about 34 s, because the existing.invalidlookups wait on the local DNS, so it hits its 20 s ctest timeout here both with and without this change.python tools/check_conventions.py --base origin/mainandtools/check_test_registration.pypass.mainit fails to load on this import. With this change it reaches its title screen ("Press any button", Ver. 1.4.1) and runs at 60 fps for the 240 s run. Starting a game hands off to the second executable (--executable mgs4/mgs4.elf), which then stops on missing libSceCesCs EUC-JP conversions (sceCesUtf8StrToMbcsStrand its family). That is a separate follow-up.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repository🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T19:14:34Z.
Progress report (
dacd785→df32a44)➖ System libraries: 88.15% (+0.0%, +1 implemented functions)
✅ 1 implemented
sceNetResolverStartNtoa6Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T19:27:05Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/debt/libSceNet.mdL13