docs(libSceNet): list the socket-level options titles set that sceNetSetsockopt refuses #11968
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11968"
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 milescoviello on 2026-10-27T14:07:14Z.
What
sceNetSetsockoptreturnsEOPNOTSUPPfor anySOL_SOCKEToption it doesn't handle, butdocs/dev/debt/libSceNet.mddoesn't say which ones titles actually set. The existingSO_ONESBCASTentry shows such a failure can matter: PPSA34501 set it and crashed later while it failed.I read the
levelandoptnameat everysceNetSetsockoptcall site in ten titles' relinked executables. These socket-level options take that path:net_types.h)0x1201SO_POLICY0x20000SO_USECRYPTO0x80SO_LINGER{0, 0}(linger off)0x200SO_REUSEPORTapp.elf); 1 in Astro Bot (PPSA21564 01.007.000), where a helper picks it instead ofSO_REUSEADDR(0x4) when its own socket-type field is 1 or 3, before one shared callCrimson Desert tests the result and continues after a failure. I didn't follow the others' error paths.
This adds one Functional entry listing them, with titles named by PPSA id only.
SO_LINGERandSO_REUSEPORTare standard FreeBSD 11.4 options. What the console does forSO_POLICYandSO_USECRYPTOis unknown, so the entry says that.SO_CONNECTTIMEO(0x1109), which MGS4 sets four times, is left out on purpose: #11571 (NevesHenry) implements it and adds its own entry.How
Changed:
docs/dev/debt/libSceNet.md, one new entry under Functional (772 characters), after theSO_ONESBCASTentry. No code change.Re-check after review (head
50fd1824e2): my first scan read only the constant loaded just before each call, so it missed Astro Bot's branch-selectedSO_REUSEPORT(oneandonlydean found it). I re-read everysceNetSetsockoptcall site in the ten titles from the previouscallto the call itself, so that everyoptnamea branch can pass is counted. Astro Bot's helper (0x31e1a0in its eboot) is the only site that picks between two constants, and no site passes a register-sourced option. The other refused options match the table above.Tested
Docs only.
tools/check_conventions.py --base upstream/mainpasses.tools/pr_overlap.pycouldn't compare #5836, #9578, #9932 and #10502, which edit this file but already conflict withmain. None of them adds or changes an entry next to theSO_ONESBCASTone. #11571 adds its entry elsewhere in the file and merges cleanly with this.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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-28T10:54:41Z.
Review: APPROVED
Reviewed
50fd1824e2d358e8e1809f1b0248ee5cc3a70b04against author merge baseeece5da035096f4a6fd936c3dfacf667f474f3af— approve the documentation change.The unsupported SOL_SOCKET options remain documented as EOPNOTSUPP in the host. Added option numbers and caller values retain the distinction between observed calls and unknown private console behavior.
Validation: checked the submitted Markdown diff, pinned implementation references and relative links;
git diff --checkpassed. This changes documentation only. Title disassembly and console observations were not independently reproduced; no runtime regression result is claimed.