docs(debt): name the network info codes that titles ask for #14049

Merged
xXPBSXx merged 3 commits from upstream-pr/14049 into main 2026-11-06 14:36:22 +00:00
xXPBSXx commented 2026-10-31 17:02:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-31T17:02:38Z.


What

The sceNetCtlGetInfo debt entry says that a missing gateway or DNS server is answered as 0.0.0.0 and that the console value for that case is unknown, and that several codes follow KytyPS5 without a measurement. This adds a new entry, right after that one (which is at its length limit and is unchanged), with the codes the titles ask for:

every call with a constant code in the titles checked asks for the device (1), the link state (4), the DHCP host name (12), the IP address (14) or the netmask (15); none of them asks for the default route (16) or a DNS server (17, 18). The code of the other calls (computed or not decodable) is not known

Changed: docs/dev/debt/libSceNetCtl.md, one new entry; no existing text is removed or changed. No code change.

What AnyPS5 answers for these codes (sceNetCtlGetInfo in core/libs/prx/libSceNetCtl/Export.cpp): 1 wired, 4 connected, 12 an empty string, 14 and 15 the host interface's address and netmask. So the unknown console value for a missing gateway or DNS server does not affect any call with a constant code; the 13 other calls (11 computed, 2 ambiguous) are not shown to ask for the gateway or a DNS server, nor shown not to. Of the codes asked for as constants, 12 (the empty DHCP host name, taken from KytyPS5) is the one whose console value is not measured.

Count (script and output, one line per call site with title, address and code):

Info code Call sites Titles
14 (IP address) 55 22
4 (link state) 30 19
12 (DHCP host name) 27 18
1 (device) 21 19
15 (netmask) 7 7
16, 17, 18 (default route, DNS) 0 0
Not shown constant 13 (11 computed, 2 ambiguous)

33 titles import sceNetCtlGetInfo and all 33 call it directly: 153 direct calls, no tail jumps, no non-stub call sites. The 11 "computed" calls are in 11 titles, one each; the two "ambiguous" ones are PPSA02225 at 0xa26e2e (no write to edi in the window from most start offsets) and PPSA07411 at 0x713f19e (code 14 from 12 of 17 start offsets, "computed" from the other 5). These 13 are counted as "not shown to be a constant", which is why the entry covers only the calls with a constant code and says that the code of the others is not known.

Method: for every direct call to the import stub the bytes before the call are decoded and the last write to edi (the info code) decides: xor of the register with itself or a mov of an immediate is a constant, any other write is "computed", no write in the window is "unreadable", and decodings that disagree are "ambiguous". Only the titles' own executables are read.

Overlap

All 1647 open PRs were checked on 2026-10-31 at 14:24 UTC against main 73f4f7e06e. Three others change docs/dev/debt/libSceNetCtl.md or Export.cpp (#11042, #9728, #9578); none changes the existing sceNetCtlGetInfo entry or its code. Only #11042 conflicts with this change: it rewrites the sceNetCtlGetInfoV6 entry on the line that follows the new one. It goes first (see the comment there). Checked once more on 2026-10-31 at 16:55 UTC against main 474030e584: none of the 63 pull requests opened since 13:45 UTC changes libSceNetCtl files, and #11042 still conflicts with this change.

Tested

Documentation only. tools/check_conventions.py --base upstream/main passes; based on main 73f4f7e06e; after #11042 was merged, merge commit edc5164216 brings in main 3c3b3cda73, the diff against main is still the one added line, and the head merges with main 98346b748c without a conflict (checked 2026-11-02 11:28 UTC). Not built, not 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 (#11042, the earlier landing-order dependency, was merged on 2026-11-02)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

AI-assisted (Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5099684560 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14049). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-31T17:02:38Z. --- ### What The `sceNetCtlGetInfo` debt entry says that a missing gateway or DNS server is answered as `0.0.0.0` and that the console value for that case is unknown, and that several codes follow KytyPS5 without a measurement. This adds a new entry, right after that one (which is at its length limit and is unchanged), with the codes the titles ask for: > every call with a constant code in the titles checked asks for the device (1), the link state (4), the DHCP host name (12), the IP address (14) or the netmask (15); none of them asks for the default route (16) or a DNS server (17, 18). The code of the other calls (computed or not decodable) is not known Changed: `docs/dev/debt/libSceNetCtl.md`, one new entry; no existing text is removed or changed. No code change. What AnyPS5 answers for these codes (`sceNetCtlGetInfo` in `core/libs/prx/libSceNetCtl/Export.cpp`): 1 wired, 4 connected, 12 an empty string, 14 and 15 the host interface's address and netmask. So the unknown console value for a missing gateway or DNS server does not affect any call with a constant code; the 13 other calls (11 computed, 2 ambiguous) are not shown to ask for the gateway or a DNS server, nor shown not to. Of the codes asked for as constants, 12 (the empty DHCP host name, taken from KytyPS5) is the one whose console value is not measured. Count ([script and output](https://github.com/boykopovar/AnyPS5/pull/14049#issuecomment-6546473214), one line per call site with title, address and code): | Info code | Call sites | Titles | |---|---|---| | 14 (IP address) | 55 | 22 | | 4 (link state) | 30 | 19 | | 12 (DHCP host name) | 27 | 18 | | 1 (device) | 21 | 19 | | 15 (netmask) | 7 | 7 | | 16, 17, 18 (default route, DNS) | 0 | 0 | | Not shown constant | 13 (11 computed, 2 ambiguous) | | 33 titles import `sceNetCtlGetInfo` and all 33 call it directly: 153 direct calls, no tail jumps, no non-stub call sites. The 11 "computed" calls are in 11 titles, one each; the two "ambiguous" ones are PPSA02225 at `0xa26e2e` (no write to `edi` in the window from most start offsets) and PPSA07411 at `0x713f19e` (code 14 from 12 of 17 start offsets, "computed" from the other 5). These 13 are counted as "not shown to be a constant", which is why the entry covers only the calls with a constant code and says that the code of the others is not known. Method: for every direct call to the import stub the bytes before the call are decoded and the last write to `edi` (the info code) decides: `xor` of the register with itself or a `mov` of an immediate is a constant, any other write is "computed", no write in the window is "unreadable", and decodings that disagree are "ambiguous". Only the titles' own executables are read. ### Overlap All 1647 open PRs were checked on 2026-10-31 at 14:24 UTC against `main` `73f4f7e06e`. Three others change `docs/dev/debt/libSceNetCtl.md` or `Export.cpp` (#11042, #9728, #9578); none changes the existing `sceNetCtlGetInfo` entry or its code. Only #11042 conflicts with this change: it rewrites the `sceNetCtlGetInfoV6` entry on the line that follows the new one. It goes first (see the comment there). Checked once more on 2026-10-31 at 16:55 UTC against `main` `474030e584`: none of the 63 pull requests opened since 13:45 UTC changes libSceNetCtl files, and #11042 still conflicts with this change. ### Tested Documentation only. `tools/check_conventions.py --base upstream/main` passes; based on `main` `73f4f7e06e`; after #11042 was merged, merge commit `edc5164216` brings in `main` `3c3b3cda73`, the diff against `main` is still the one added line, and the head merges with `main` `98346b748c` without a conflict (checked 2026-11-02 11:28 UTC). Not built, not 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 (#11042, the earlier landing-order dependency, was merged on 2026-11-02) - [x] Fixes: none - [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-31 17:06:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T17:06:03Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The new debt entry overstates what the call-site analysis establishes: 13 of the 153 direct calls were classified as computed or ambiguous, so their requested codes remain unknown.

What I ran

Reviewed head 4bb4e5ac962e16909bf6e47c0befd82bbb5c41ba against main at 474030e58424fefdb65e5df9f3820810fbb4553c. The PR and #11042 each preview cleanly against current main; the declared landing-order relationship is not an integration test. Environment: Linux x86_64, Python 3.11.2, GCC 12.2.0. This is a documentation-only change; I did not build or compile.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14049 --output-dir /tmp/anyps5-14049-review
git diff --check 474030e58424fefdb65e5df9f3820810fbb4553c...4bb4e5ac962e16909bf6e47c0befd82bbb5c41ba
git show refs/remotes/upstream/pr/14049:docs/dev/debt/libSceNetCtl.md | nl -ba | sed -n '5,11p'
gh pr checks 14049 --repo boykopovar/AnyPS5

Results

Check Result
Diff check Passed; no output.
Conventions and PR template Passed locally and in hosted CI.
Dependency/merge preview #14049 and #11042 each preview cleanly against current main; #14049 is declared to land after #11042 because they edit adjacent debt entries. No combined integration preview was run.
Hosted CI Intake, eligibility, conventions, and labels passed. Build and platform jobs were skipped for this documentation-only change.
Evidence consistency The PR reports 153 direct calls: 140 constant-valued results, 11 computed, and 2 ambiguous. The new sentence makes an unqualified claim about all decoded calls.
Relevant unedited output

Convention check:

All conventions checks passed.

Precheck summary:

/tmp/anyps5-14049-review/report.md
/tmp/anyps5-14049-review/report.json
Conclusion: checks failed

The precheck’s test-quality helper is absent from its isolated PR checkout; the changed file is documentation, so this helper was not needed for the review. The precheck stack report lists #14049 and #11042 as clean against current main individually.

Hosted checks:

conventions	pass	16s	https://github.com/boykopovar/AnyPS5/actions/runs/41222694478/job/124600365918
intake	pass	5s	https://github.com/boykopovar/AnyPS5/actions/runs/41222577489/job/124600020449
labels	pass	10s	https://github.com/boykopovar/AnyPS5/actions/runs/41222694577/job/124600365487
linux	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41222577693/job/124600065949
register-context	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41222577693/job/124600065464
relinker	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41222577693/job/124600065626
relinker-asan	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41222577693/job/124600065665
windows	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41222577693/job/124600065236
write-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41222577693/job/124600065249
eligibility	pass	8s	https://github.com/boykopovar/AnyPS5/actions/runs/41222577693/job/124600020063

Findings

Blocking

The new entry says none of the calls asks for codes 16–18, but the report identifies 11 computed arguments and 2 ambiguous arguments. Those 13 direct calls are not shown to use another code; their runtime values are unresolved, so the evidence does not support the unqualified “none asks” claim. Please scope it to the calls with statically recovered constant arguments and state that the 13 unresolved calls are unknown. For example:

- [sceNetCtlGetInfo](../../../core/libs/prx/libSceNetCtl/Export.cpp) (libSceNetCtl) - Among the 140 direct calls whose info-code argument was recovered as a constant in the titles checked, the codes are device (1), link state (4), DHCP host name (12), IP address (14) and netmask (15); none is the default route (16) or a DNS server (17, 18). Thirteen other direct calls have computed or ambiguous arguments, so their requested codes are unknown

Non-blocking

None.

Sources

Not verified

I did not independently rerun the author’s title-binary analysis or inspect the title executables. The unresolved computed and ambiguous arguments could not be assigned a runtime value from the supplied static report. No build or tests were run because only documentation changed.

To get this to a good state

Limit the conclusion to constant-valued call sites and disclose the 13 unresolved calls. I will rerun the same checks on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5723963595 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14049#pullrequestreview-5723963595). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-31T17:06:03Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The new debt entry overstates what the call-site analysis establishes: 13 of the 153 direct calls were classified as computed or ambiguous, so their requested codes remain unknown. ## What I ran Reviewed head `4bb4e5ac962e16909bf6e47c0befd82bbb5c41ba` against `main` at `474030e58424fefdb65e5df9f3820810fbb4553c`. The PR and #11042 each preview cleanly against current `main`; the declared landing-order relationship is not an integration test. Environment: Linux x86_64, Python 3.11.2, GCC 12.2.0. This is a documentation-only change; I did not build or compile. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14049 --output-dir /tmp/anyps5-14049-review git diff --check 474030e58424fefdb65e5df9f3820810fbb4553c...4bb4e5ac962e16909bf6e47c0befd82bbb5c41ba git show refs/remotes/upstream/pr/14049:docs/dev/debt/libSceNetCtl.md | nl -ba | sed -n '5,11p' gh pr checks 14049 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | |---|---| | Diff check | Passed; no output. | | Conventions and PR template | Passed locally and in hosted CI. | | Dependency/merge preview | #14049 and #11042 each preview cleanly against current `main`; #14049 is declared to land after #11042 because they edit adjacent debt entries. No combined integration preview was run. | | Hosted CI | Intake, eligibility, conventions, and labels passed. Build and platform jobs were skipped for this documentation-only change. | | Evidence consistency | The PR reports 153 direct calls: 140 constant-valued results, 11 computed, and 2 ambiguous. The new sentence makes an unqualified claim about all decoded calls. | <details><summary>Relevant unedited output</summary> Convention check: ```text All conventions checks passed. ``` Precheck summary: ```text /tmp/anyps5-14049-review/report.md /tmp/anyps5-14049-review/report.json Conclusion: checks failed ``` The precheck’s test-quality helper is absent from its isolated PR checkout; the changed file is documentation, so this helper was not needed for the review. The precheck stack report lists #14049 and #11042 as clean against current `main` individually. Hosted checks: ```text conventions pass 16s https://github.com/boykopovar/AnyPS5/actions/runs/41222694478/job/124600365918 intake pass 5s https://github.com/boykopovar/AnyPS5/actions/runs/41222577489/job/124600020449 labels pass 10s https://github.com/boykopovar/AnyPS5/actions/runs/41222694577/job/124600365487 linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41222577693/job/124600065949 register-context skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41222577693/job/124600065464 relinker skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41222577693/job/124600065626 relinker-asan skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41222577693/job/124600065665 windows skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41222577693/job/124600065236 write-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41222577693/job/124600065249 eligibility pass 8s https://github.com/boykopovar/AnyPS5/actions/runs/41222577693/job/124600020063 ``` </details> ## Findings ### Blocking The new entry says none of the calls asks for codes 16–18, but the report identifies 11 computed arguments and 2 ambiguous arguments. Those 13 direct calls are not shown to use another code; their runtime values are unresolved, so the evidence does not support the unqualified “none asks” claim. Please scope it to the calls with statically recovered constant arguments and state that the 13 unresolved calls are unknown. For example: ```suggestion - [sceNetCtlGetInfo](../../../core/libs/prx/libSceNetCtl/Export.cpp) (libSceNetCtl) - Among the 140 direct calls whose info-code argument was recovered as a constant in the titles checked, the codes are device (1), link state (4), DHCP host name (12), IP address (14) and netmask (15); none is the default route (16) or a DNS server (17, 18). Thirteen other direct calls have computed or ambiguous arguments, so their requested codes are unknown ``` ### Non-blocking None. ## Sources - [The new debt claim at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/4bb4e5ac962e16909bf6e47c0befd82bbb5c41ba/docs/dev/debt/libSceNetCtl.md#L8) - [Call-site report, method, and the 11 computed / 2 ambiguous classifications](https://github.com/boykopovar/AnyPS5/pull/14049#issuecomment-6546473214) ## Not verified I did not independently rerun the author’s title-binary analysis or inspect the title executables. The unresolved computed and ambiguous arguments could not be assigned a runtime value from the supplied static report. No build or tests were run because only documentation changed. ## To get this to a good state Limit the conclusion to constant-valued call sites and disclose the 13 unresolved calls. I will rerun the same checks on the updated head.
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!14049
No description provided.