docs(debt): name the network info codes that titles ask for #14049
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14049"
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 xXPBSXx on 2026-10-31T17:02:38Z.
What
The
sceNetCtlGetInfodebt entry says that a missing gateway or DNS server is answered as0.0.0.0and 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: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 (
sceNetCtlGetInfoincore/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):
33 titles import
sceNetCtlGetInfoand 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 at0xa26e2e(no write toediin the window from most start offsets) and PPSA07411 at0x713f19e(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:xorof the register with itself or amovof 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
main73f4f7e06e. Three others changedocs/dev/debt/libSceNetCtl.mdorExport.cpp(#11042, #9728, #9578); none changes the existingsceNetCtlGetInfoentry or its code. Only #11042 conflicts with this change: it rewrites thesceNetCtlGetInfoV6entry 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 againstmain474030e584: 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/mainpasses; based onmain73f4f7e06e; after #11042 was merged, merge commitedc5164216brings inmain3c3b3cda73, the diff againstmainis still the one added line, and the head merges withmain98346b748cwithout a conflict (checked 2026-11-02 11:28 UTC). Not built, not run.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)AI-assisted (Claude Code).
🤖 Generated with Claude Code
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
4bb4e5ac962e16909bf6e47c0befd82bbb5c41baagainstmainat474030e58424fefdb65e5df9f3820810fbb4553c. The PR and #11042 each preview cleanly against currentmain; 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.Results
main; #14049 is declared to land after #11042 because they edit adjacent debt entries. No combined integration preview was run.Relevant unedited output
Convention check:
Precheck summary:
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
mainindividually.Hosted checks:
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:
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.