Skip to content

feat(netctl): add sceNetCtlGetInfoV6 argument and connection checks - #8100

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
LuisAguilarDev:feat/netctl-get-info-v6
Oct 20, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
LuisAguilarDev:feat/netctl-get-info-v6

Conversation

@LuisAguilarDev

Copy link
Copy Markdown
Contributor

What

Add sceNetCtlGetInfoV6 to libSceNetCtl. libSceNetCtl exports sceNetCtlGetStateV6 and the V6 callback calls but not this one, so a title that imports it stops at load.

The signature (int code, SceNetCtlInfoV6* info) and codes 1-5 (IP address, link-local address, default route, primary and secondary DNS) come only from SharpProspero; shadPS4 and fpPS4 only stub the call. Only the checks that need no answer layout are implemented:

  • a null info returns SCE_NET_CTL_ERROR_INVALID_ADDR
  • a code outside 1-5 returns SCE_NET_CTL_ERROR_INVALID_CODE
  • a host without an IPv6 address returns SCE_NET_CTL_ERROR_NOT_CONNECTED, the state sceNetCtlGetStateV6 reports for it

The layout of each answer is not verified, so every valid code throws on a host with an IPv6 address. The gap is recorded under Unknown function info in docs/dev/debt/libSceNetCtl.md.

Overlaps #7612, which declares sceNetCtlGetInfoV6 without parameters as a throwing stub (NotImplemented_nid_no_patch); this PR adds the argument and connection checks: the signature from SharpProspero, INVALID_ADDR, INVALID_CODE and NOT_CONNECTED as above, and a test. Only a valid code on a host with IPv6 throws.

Tested

  • Windows 11, MinGW-w64 GCC, Release:
    • guest_net_ctl passes in 0.28 s. It covers codes 0 and 6, a null info, and NOT_CONNECTED when sceNetCtlGetStateV6 reports no IPv6 address.
    • tools/check_conventions.py --base upstream/main and git diff --check pass.
  • Dragon Ball Xenoverse 2 (PPSA08587) imports the function. With it the title loads; it has not called it yet.

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 (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: PPSA08587 Dragon Ball Xenoverse 2 (PPSA08587) on Windows #6591
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

Replaces #7721, which GitHub does not allow to reopen after the open PR limit closed it. Same branch and commit; the discussion is there.

@github-actions github-actions Bot added unblocks title Names a title ID on the Unblocks line needs rebase Conflicts with main, rebase needed labels Oct 19, 2026
@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

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.

Pull request Shared files not compared
PR 6039 docs/dev/debt/libSceNetCtl.md
PR 6044 core/libs/tests/GuestNetCtl.cpp
PR 7201 core/libs/prx/libSceNetCtl/Export.cpp

@slick-daddy

Copy link
Copy Markdown
Contributor

Rebase please.

Titles import sceNetCtlGetInfoV6, and a missing import stops them at
load. The checks that need no answer layout are implemented; every code
throws when the host has IPv6, since the layout of the answer is not
verified.
@LuisAguilarDev
LuisAguilarDev force-pushed the feat/netctl-get-info-v6 branch from aa769ce to 1b33f14 Compare October 20, 2026 01:20
@github-actions

Copy link
Copy Markdown

Progress report (7e12b3d → 1b33f14)

📈 System libraries: 80.15% (+0.02%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceNetCtl sceNetCtlGetInfoV6

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 20, 2026
@oneandonlydean oneandonlydean self-assigned this Oct 20, 2026
@oneandonlydean
oneandonlydean merged commit 407d0d8 into boykopovar:main Oct 20, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs prx unblocks title Names a title ID on the Unblocks line

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants