docs(libSceNet): note that Crimson Desert disables IPV6_V6ONLY #11966

Merged
milescoviello merged 1 commit from upstream-pr/11966 into main 2026-10-29 13:33:02 +00:00
milescoviello commented 2026-10-27 14:03:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-27T14:03:14Z.


What

The IPV6_V6ONLY entry in docs/dev/debt/libSceNet.md says the option is unverified on PS5 and that disabling it permits IPv4-mapped traffic on a socket bound to the IPv6 wildcard address. It doesn't say whether titles use it. This adds that Crimson Desert does: it turns the option off.

I read the level, optname and optlen arguments at every sceNetSetsockopt call site in ten titles' relinked executables, and for the IPv6 calls the value the option pointer points to:

Title Version IPv6-level (41) calls Option Value
Crimson Desert (PPSA25286) 01.000.568 2 27 (IPV6_V6ONLY), 4 bytes 0 at both
Borderlands 4 (PPSA01494) 01.100.002 1 12 (IPV6_JOIN_GROUP) not read

Ghost of Tsushima, Forspoken, Metal Gear Solid 4, Astro Bot, MXGP 26, Super Meat Boy 3D, Call of Duty: Black Ops II and Steins;Gate Re:Boot pass no IPv6-level option as a constant. One Borderlands 4 call doesn't set its level in the instructions since the previous call, so I couldn't read it and didn't count it.

So Crimson Desert depends on the dual-stack path this entry describes.

How

Changed: docs/dev/debt/libSceNet.md, one sentence added to the IPV6_V6ONLY entry (now 910 characters). No code change.

Tested

Docs only. tools/check_conventions.py --base upstream/main passes. tools/pr_overlap.py couldn't compare #5836, #9578, #9932 and #10502, which edit this file but already conflict with main. None of their diffs touches this entry.

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

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5035212619 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11966). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-27T14:03:14Z. --- ### What The `IPV6_V6ONLY` entry in `docs/dev/debt/libSceNet.md` says the option is unverified on PS5 and that disabling it permits IPv4-mapped traffic on a socket bound to the IPv6 wildcard address. It doesn't say whether titles use it. This adds that Crimson Desert does: it turns the option off. I read the `level`, `optname` and `optlen` arguments at every `sceNetSetsockopt` call site in ten titles' relinked executables, and for the IPv6 calls the value the option pointer points to: | Title | Version | IPv6-level (41) calls | Option | Value | |---|---|---|---|---| | Crimson Desert (PPSA25286) | 01.000.568 | 2 | 27 (`IPV6_V6ONLY`), 4 bytes | 0 at both | | Borderlands 4 (PPSA01494) | 01.100.002 | 1 | 12 (`IPV6_JOIN_GROUP`) | not read | Ghost of Tsushima, Forspoken, Metal Gear Solid 4, Astro Bot, MXGP 26, Super Meat Boy 3D, Call of Duty: Black Ops II and Steins;Gate Re:Boot pass no IPv6-level option as a constant. One Borderlands 4 call doesn't set its level in the instructions since the previous call, so I couldn't read it and didn't count it. So Crimson Desert depends on the dual-stack path this entry describes. ### How Changed: `docs/dev/debt/libSceNet.md`, one sentence added to the `IPV6_V6ONLY` entry (now 910 characters). No code change. ### Tested Docs only. `tools/check_conventions.py --base upstream/main` passes. `tools/pr_overlap.py` couldn't compare #5836, #9578, #9932 and #10502, which edit this file but already conflict with `main`. None of their diffs touches this entry. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
THEMANnt commented 2026-10-28 10:54:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-28T10:54:24Z.

Review: APPROVED


Reviewed 1f3ff3dde501b54bfe553ab90309815c4226fd37 against author merge base eece5da035096f4a6fd936c3dfacf667f474f3af — approve the documentation change.

The IPV6_V6ONLY level, option and four-byte zero argument are described as caller evidence. The shared libkernel socket handling is linked without claiming independent console option measurements.

Validation: checked the submitted Markdown diff, pinned implementation references and relative links; git diff --check passed. This changes documentation only. Title disassembly and console observations were not independently reproduced; no runtime regression result is claimed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5681483506 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11966#pullrequestreview-5681483506). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-10-28T10:54:24Z. **Review:** APPROVED --- Reviewed `1f3ff3dde501b54bfe553ab90309815c4226fd37` against author merge base `eece5da035096f4a6fd936c3dfacf667f474f3af` — approve the documentation change. The IPV6_V6ONLY level, option and four-byte zero argument are described as caller evidence. The shared libkernel socket handling is linked without claiming independent console option measurements. Validation: checked the submitted Markdown diff, pinned implementation references and relative links; `git diff --check` passed. This changes documentation only. Title disassembly and console observations were not independently reproduced; no runtime regression result is claimed.
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!11966
No description provided.