docs(debt): note how a title uses the sceNetCtlGetInfo host name codes #10148

Merged
xXPBSXx merged 2 commits from upstream-pr/10148 into main 2026-10-26 15:09:37 +00:00
xXPBSXx commented 2026-10-23 10:47:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-23T10:47:40Z.


What

The changed entry now reads:

sceNetCtlGetInfo (libSceNetCtl) - answers from the host interface that holds an IPv4 address, preferring the one that carries the default route: its address, netmask, gateway, MTU and first two IPv4 DNS servers. The device is reported as wired, the link as connected, the IP configuration as DHCP and the HTTP proxy as off, whatever the host uses, and the Ethernet address is the one sceNetGetMacAddress reports. A gateway or DNS server the interface does not have is reported as 0.0.0.0; what a console reports then is unknown. The DHCP host name (12), the PPPoE user name (13), the HTTP proxy server (20) and the Wi-Fi BSSID and SSID (5, 6) are empty strings, as that configuration sets none of them; the remaining Wi-Fi codes (7-10) and the HTTP proxy port (21) report 0; this follows KytyPS5 and is not measured on hardware. One title (PPSA02225) disassembled for this entry has four call sites (code 12 at 0x1056f0f, 0xa0387f, 0xa26de5; code 14 at 0x1056fa1); what the flag byte it checks means is not shown.

Changed: docs/dev/debt/libSceNetCtl.md. No code change.

Method: Ghidra 12.1.4 headless on the unwrapped executable of the title named; the addresses are the call sites in that executable as Ghidra maps it, read from the instruction listing (static reading only, nothing run on a console). The listing and decompiled code are game code and are not attached.

Fixes: #10147

Tested

Documentation only. tools/check_conventions.py --base upstream/main passes; git merge-tree against main is clean. Every number in the sentence was recounted against the instruction listing. Not built, not run, no title run.

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 #10147
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

AI-assisted (Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4981573938 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10148). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-23T10:47:40Z. --- ### What The changed entry now reads: > [sceNetCtlGetInfo](../../../core/libs/prx/libSceNetCtl/Export.cpp) (libSceNetCtl) - answers from the host interface that holds an IPv4 address, preferring the one that carries the default route: its address, netmask, gateway, MTU and first two IPv4 DNS servers. The device is reported as wired, the link as connected, the IP configuration as DHCP and the HTTP proxy as off, whatever the host uses, and the Ethernet address is the one `sceNetGetMacAddress` reports. A gateway or DNS server the interface does not have is reported as `0.0.0.0`; what a console reports then is unknown. The DHCP host name (12), the PPPoE user name (13), the HTTP proxy server (20) and the Wi-Fi BSSID and SSID (5, 6) are empty strings, as that configuration sets none of them; the remaining Wi-Fi codes (7-10) and the HTTP proxy port (21) report 0; this follows [KytyPS5](https://github.com/KytyPS5/KytyPS5/blob/main/src/libs/network.cpp) and is not measured on hardware. One title (PPSA02225) disassembled for this entry has four call sites (code 12 at 0x1056f0f, 0xa0387f, 0xa26de5; code 14 at 0x1056fa1); what the flag byte it checks means is not shown. Changed: `docs/dev/debt/libSceNetCtl.md`. No code change. Method: Ghidra 12.1.4 headless on the unwrapped executable of the title named; the addresses are the call sites in that executable as Ghidra maps it, read from the instruction listing (static reading only, nothing run on a console). The listing and decompiled code are game code and are not attached. Fixes: #10147 ### Tested Documentation only. `tools/check_conventions.py --base upstream/main` passes; `git merge-tree` against `main` is clean. Every number in the sentence was recounted against the instruction listing. Not built, not run, no title run. ### 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](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes #10147 - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-23 10:55:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T10:55:53Z.

Review: CHANGES_REQUESTED


The title call-site evidence is useful and the conventions check reports no errors, but it emits a specific debt-length warning: this entry is 1,138 characters against the 1,000-character limit. Please trim it to the missing/uncertain behavior and the call-site details needed to establish that gap, then rerun the conventions check. The statement that the DHCP host name etc. are empty follows host settings rather than hardware evidence, and the text already labels that limitation; keep that distinction when shortening. I verified git diff --check and current-main mergeability locally (1 ahead, 13 behind; clean merge). No runtime build applies to this documentation-only change.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5627266085 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10148#pullrequestreview-5627266085). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T10:55:53Z. **Review:** CHANGES_REQUESTED --- The title call-site evidence is useful and the conventions check reports no errors, but it emits a specific `debt-length` warning: this entry is 1,138 characters against the 1,000-character limit. Please trim it to the missing/uncertain behavior and the call-site details needed to establish that gap, then rerun the conventions check. The statement that the DHCP host name etc. are empty follows host settings rather than hardware evidence, and the text already labels that limitation; keep that distinction when shortening. I verified `git diff --check` and current-main mergeability locally (1 ahead, 13 behind; clean merge). No runtime build applies to this documentation-only change.
MarcZX10 commented 2026-10-23 11:21:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T11:21:16Z.

Review: APPROVED


The revised debt entry is now 998 characters and the hosted conventions check passes. I also ran python tools/check_conventions.py --base upstream/main, git diff --check upstream/main...HEAD, and checked the merge tree against current main; all pass. This is documentation-only, so there is no applicable runtime test. I manually inspected the overlap warnings: #6039 adds a separate NetCtl debt entry, #8658 has no substantive overlap with this line, and #9728 updates the same GetInfo debt entry to document platform route lookup while adding GetIfStat. That is adjacent documentation work rather than a duplicate of the PPSA02225 call-site evidence here. The call-site statement remains clearly scoped to one title and static analysis.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5627521602 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10148#pullrequestreview-5627521602). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T11:21:16Z. **Review:** APPROVED --- The revised debt entry is now 998 characters and the hosted conventions check passes. I also ran `python tools/check_conventions.py --base upstream/main`, `git diff --check upstream/main...HEAD`, and checked the merge tree against current `main`; all pass. This is documentation-only, so there is no applicable runtime test. I manually inspected the overlap warnings: #6039 adds a separate NetCtl debt entry, #8658 has no substantive overlap with this line, and #9728 updates the same GetInfo debt entry to document platform route lookup while adding GetIfStat. That is adjacent documentation work rather than a duplicate of the PPSA02225 call-site evidence here. The call-site statement remains clearly scoped to one title and static analysis.
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!10148
No description provided.