feat(net): implement sceNetResolverStartNtoaMultipleRecords #2195

Closed
obojeoboje wants to merge 1 commit from upstream-pr/2195 into main
obojeoboje commented 2026-10-09 11:27:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by obojeoboje on 2026-10-09T11:27:16Z.


What

sceNetResolverStartNtoaMultipleRecords always threw. Implement the synchronous IPv4 path by giving it the six-argument signature and delegating to the existing sceNetResolverStartNtoaMultipleRecordsEx implementation. Nonzero flags still throw explicitly.

The signature follows shadPS4 net.cpp; the result layout is shared with Ex and matches net_types.h. Record the PS4 reference, unsupported flags, inherited timeout/retry limitations and lack of PS5 hardware verification in TechnicalDebt.

Extend the existing network test with numeric IPv4 and localhost lookup, record layout and output bounds, null arguments, invalid/destroyed resolver IDs, unsupported flags, DNS failure and recovery. The local progress scanner changes one existing function from unimplemented to implemented: 2578/3044 (84.69%) to 2579/3044 (84.72%).

Tested

Windows 11, WinLibs MinGW-w64 GCC 15.2.0, Release:

  • Configured the full project with BUILD_TESTING=ON and pinned third-party submodules.
  • cmake --build build --target guest_sce_net_tests guest_resolver_tests --parallel 4: passed, building libSceNet and its runtime dependencies.
  • ctest --test-dir build --output-on-failure -R '^(guest_sce_net|guest_resolver)$' --parallel 2: both passed; guest_sce_net took 0.77 s.
  • Built nid_patcher, copied the new libSceNet PRX and ran the same --preserve-exports patch command as the library packaging rule: passed.
  • python tools/check_test_registration.py build: passed.
  • python tools/check_conventions.py --base origin/main: passed.

The complete library/shader build and full CTest suite were not run. Not tested on Linux, PS5 hardware or a title.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; no silent stubs added
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source (none added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4799773881 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2195). Originally posted by [obojeoboje](https://github.com/obojeoboje) on 2026-10-09T11:27:16Z. --- ### What `sceNetResolverStartNtoaMultipleRecords` always threw. Implement the synchronous IPv4 path by giving it the six-argument signature and delegating to the existing `sceNetResolverStartNtoaMultipleRecordsEx` implementation. Nonzero flags still throw explicitly. The signature follows [shadPS4 net.cpp](https://github.com/shadps4-emu/shadPS4/blob/0fe263a4760dfbfa973366890061749b4af0de97/src/core/libraries/net/net.cpp); the result layout is shared with Ex and matches [net_types.h](https://github.com/shadps4-emu/shadPS4/blob/0fe263a4760dfbfa973366890061749b4af0de97/src/core/libraries/net/net_types.h). Record the PS4 reference, unsupported flags, inherited timeout/retry limitations and lack of PS5 hardware verification in TechnicalDebt. Extend the existing network test with numeric IPv4 and localhost lookup, record layout and output bounds, null arguments, invalid/destroyed resolver IDs, unsupported flags, DNS failure and recovery. The local progress scanner changes one existing function from unimplemented to implemented: 2578/3044 (84.69%) to 2579/3044 (84.72%). ### Tested Windows 11, WinLibs MinGW-w64 GCC 15.2.0, Release: - Configured the full project with `BUILD_TESTING=ON` and pinned third-party submodules. - `cmake --build build --target guest_sce_net_tests guest_resolver_tests --parallel 4`: passed, building libSceNet and its runtime dependencies. - `ctest --test-dir build --output-on-failure -R '^(guest_sce_net|guest_resolver)$' --parallel 2`: both passed; guest_sce_net took 0.77 s. - Built `nid_patcher`, copied the new libSceNet PRX and ran the same `--preserve-exports` patch command as the library packaging rule: passed. - `python tools/check_test_registration.py build`: passed. - `python tools/check_conventions.py --base origin/main`: passed. The complete library/shader build and full CTest suite were not run. Not tested on Linux, PS5 hardware or a title. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; no silent stubs added - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source (none added) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-09 12:40:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T12:40:04Z.


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.

Pull request Conflicting files (lines on main) Same exports Same new files
#2232 docs/dev/TechnicalDebt.md L40
#2234 docs/dev/TechnicalDebt.md L40
#2281 core/libs/tests/GuestSceNet.cpp L83
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6081072975 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2195#issuecomment-6081072975). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-09T12:40:04Z. --- <!-- pr-overlap --> 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**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #2232 | `docs/dev/TechnicalDebt.md` [L40](https://github.com/boykopovar/AnyPS5/blob/8b393b6e9a8ade9188d4f74a0293e0efd9828597/docs/dev/TechnicalDebt.md#L40) | | | | #2234 | `docs/dev/TechnicalDebt.md` [L40](https://github.com/boykopovar/AnyPS5/blob/8b393b6e9a8ade9188d4f74a0293e0efd9828597/docs/dev/TechnicalDebt.md#L40) | | | | #2281 | `core/libs/tests/GuestSceNet.cpp` [L83](https://github.com/boykopovar/AnyPS5/blob/8b393b6e9a8ade9188d4f74a0293e0efd9828597/core/libs/tests/GuestSceNet.cpp#L83) | | |
oneandonlydean commented 2026-10-09 20:10:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T20:10:04Z.


Closing: no title reaches sceNetResolverStartNtoaMultipleRecords on main. Please reopen with the title ID and the log line when one does.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6088443660 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2195#issuecomment-6088443660). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T20:10:04Z. --- Closing: no title reaches `sceNetResolverStartNtoaMultipleRecords` on main. Please reopen with the title ID and the log line when one does.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!2195
No description provided.