fix(libSceNetCtl): answer the DHCP host name, PPPoE name and proxy server as empty strings #6227

Merged
Celegans12 merged 1 commit from upstream-pr/6227 into main 2026-10-17 06:40:31 +00:00
Celegans12 commented 2026-10-15 05:29:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-15T05:29:47Z.


What

Since #5056, sceNetCtlGetInfo throws for every info code it does not model. PPSA26344 asks for code 12, the DHCP host name, during boot, so on current main it aborts one second in with sceNetCtlGetInfo: info code 12 is not implemented.

#5056 reports a wired connection with DHCP and the HTTP proxy off. That configuration sets no DHCP host name, no PPPoE user name and no proxy server, so:

  • codes 12 (DHCP host name), 13 (PPPoE user name) and 20 (HTTP proxy server) return 0 with an empty string;
  • the Wi-Fi codes (5-10) and the proxy port (21) still throw;
  • the libSceNetCtl debt line says the same.

With this change PPSA26344 boots past the call again.

#6039 and #6138 add lines right after the same debt line, so whichever of us merges later needs a one-line rebase there; the code doesn't overlap.

Tested

Based on main a077a88df5. Windows 11 (MinGW-w64 GCC 15.2.0) and Linux: configure -DBUILD_TESTING=ON, targeted test builds, ctest.

  • Windows NVIDIA: guest_net_ctl passes (1/1)
  • Linux (upstream's job in WSL, GCC 13.3, llvmpipe), merged with main d92a8dad: guest_net_ctl and guest_netctl_ap_dialog pass (2/2)
  • PPSA26344 v1.008 on our Windows game build (main a077a88df5 plus local work in progress) with this commit: boots and reaches the opening cinematic; without it, it aborted at 1 s

guest_net_ctl now requires codes 12, 13 and 20 to return 0 with an empty string and keeps the throw check for 5-10 and 21; with main's Export.cpp it fails on code 12.

Not tested: console behaviour.

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
  • Unblocks: PPSA26344 #675
  • GPUs tested: NVIDIA GeForce RTX 3080 Laptop GPU, driver 610.62, Windows 11; llvmpipe (Mesa 25.2.8), WSL Ubuntu 24.04
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4868683594 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6227). Originally posted by [Celegans12](https://github.com/Celegans12) on 2026-10-15T05:29:47Z. --- ### What Since #5056, `sceNetCtlGetInfo` throws for every info code it does not model. PPSA26344 asks for code 12, the DHCP host name, during boot, so on current `main` it aborts one second in with `sceNetCtlGetInfo: info code 12 is not implemented`. #5056 reports a wired connection with DHCP and the HTTP proxy off. That configuration sets no DHCP host name, no PPPoE user name and no proxy server, so: - codes 12 (DHCP host name), 13 (PPPoE user name) and 20 (HTTP proxy server) return 0 with an empty string; - the Wi-Fi codes (5-10) and the proxy port (21) still throw; - the libSceNetCtl debt line says the same. With this change PPSA26344 boots past the call again. #6039 and #6138 add lines right after the same debt line, so whichever of us merges later needs a one-line rebase there; the code doesn't overlap. ### Tested Based on `main` a077a88df5. Windows 11 (MinGW-w64 GCC 15.2.0) and Linux: configure -DBUILD_TESTING=ON, targeted test builds, ctest. - Windows NVIDIA: `guest_net_ctl` passes (1/1) - Linux (upstream's job in WSL, GCC 13.3, llvmpipe), merged with `main` d92a8dad: `guest_net_ctl` and `guest_netctl_ap_dialog` pass (2/2) - PPSA26344 v1.008 on our Windows game build (`main` a077a88df5 plus local work in progress) with this commit: boots and reaches the opening cinematic; without it, it aborted at 1 s `guest_net_ctl` now requires codes 12, 13 and 20 to return 0 with an empty string and keeps the throw check for 5-10 and 21; with `main`'s `Export.cpp` it fails on code 12. Not tested: console behaviour. ### 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] Unblocks: PPSA26344 #675 - [x] GPUs tested: NVIDIA GeForce RTX 3080 Laptop GPU, driver 610.62, Windows 11; llvmpipe (Mesa 25.2.8), WSL Ubuntu 24.04 - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-15 06:43:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T06:43:26Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 6138 docs/dev/debt/libSceNetCtl.md L5
PR 6685 docs/dev/debt/libSceNetCtl.md L5
PR 6720 core/libs/prx/libSceNetCtl/Export.cpp L44-45, L51, L351
core/libs/tests/GuestNetCtl.cpp L127-135
docs/dev/debt/libSceNetCtl.md L5

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 6039 docs/dev/debt/libSceNetCtl.md
PR 6044 core/libs/tests/GuestNetCtl.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6186182198 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6227#issuecomment-6186182198). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T06:43:26Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 6138](https://www.github.com/boykopovar/AnyPS5/pull/6138) | `docs/dev/debt/libSceNetCtl.md` [L5](https://github.com/boykopovar/AnyPS5/blob/ea4cc112a04e6144740756bcd6494bbab5377331/docs/dev/debt/libSceNetCtl.md#L5) | | | | [PR 6685](https://www.github.com/boykopovar/AnyPS5/pull/6685) | `docs/dev/debt/libSceNetCtl.md` [L5](https://github.com/boykopovar/AnyPS5/blob/ea4cc112a04e6144740756bcd6494bbab5377331/docs/dev/debt/libSceNetCtl.md#L5) | | | | [PR 6720](https://www.github.com/boykopovar/AnyPS5/pull/6720) | `core/libs/prx/libSceNetCtl/Export.cpp` [L44-45](https://github.com/boykopovar/AnyPS5/blob/ea4cc112a04e6144740756bcd6494bbab5377331/core/libs/prx/libSceNetCtl/Export.cpp#L44-L45), [L51](https://github.com/boykopovar/AnyPS5/blob/ea4cc112a04e6144740756bcd6494bbab5377331/core/libs/prx/libSceNetCtl/Export.cpp#L51), [L351](https://github.com/boykopovar/AnyPS5/blob/ea4cc112a04e6144740756bcd6494bbab5377331/core/libs/prx/libSceNetCtl/Export.cpp#L351)<br>`core/libs/tests/GuestNetCtl.cpp` [L127-135](https://github.com/boykopovar/AnyPS5/blob/ea4cc112a04e6144740756bcd6494bbab5377331/core/libs/tests/GuestNetCtl.cpp#L127-L135)<br>`docs/dev/debt/libSceNetCtl.md` [L5](https://github.com/boykopovar/AnyPS5/blob/ea4cc112a04e6144740756bcd6494bbab5377331/docs/dev/debt/libSceNetCtl.md#L5) | | | Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 6039](https://www.github.com/boykopovar/AnyPS5/pull/6039) | `docs/dev/debt/libSceNetCtl.md` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/tests/GuestNetCtl.cpp` |
EdouardSence commented 2026-10-15 08:12:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-15T08:12:26Z.


Linux / RDNA4 result for PPSA26344, same stop and same outcome as the description.

On main d92a8dad3: Ghost of Yōtei aborts before its first present with sceNetCtlGetInfo: info code 12 is not implemented (core/libs/prx/libSceNetCtl/Export.cpp:352).

With this PR merged on top (clean merge, guest_net_ctl and guest_netctl_ap_dialog pass), that message is gone:

  • The game renders the PlayStation Studios intro and runs the full 600 s with no fatal error.
  • The only what() is VideoOut: presentation thread cannot stop itself, during teardown after the timeout's SIGINT.
  • After the intro the screen stays black while it keeps dispatching and compiling large compute pipelines (for example 0x8000261500, 634,598 SPIR-V words).
  • The process hit the 18 GB cgroup cap and 4 GB of swap, so that later part says nothing about this PR.

Setup: CachyOS, RX 9070 XT, RADV Mesa 26.2.4, headless gamescope, APS5_NO_SNAPSHOT_CHECK=1.

Tested and written by Claude (AI assistant) on a contributor's machine; Gemini ran the build and the game. AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6187588645 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6227#issuecomment-6187588645). Originally posted by [EdouardSence](https://github.com/EdouardSence) on 2026-10-15T08:12:26Z. --- Linux / RDNA4 result for PPSA26344, same stop and same outcome as the description. **On `main` `d92a8dad3`:** Ghost of Yōtei aborts before its first present with `sceNetCtlGetInfo: info code 12 is not implemented` (`core/libs/prx/libSceNetCtl/Export.cpp:352`). **With this PR merged on top** (clean merge, `guest_net_ctl` and `guest_netctl_ap_dialog` pass), that message is gone: - The game renders the PlayStation Studios intro and runs the full 600 s with no fatal error. - The only `what()` is `VideoOut: presentation thread cannot stop itself`, during teardown after the timeout's SIGINT. - After the intro the screen stays black while it keeps dispatching and compiling large compute pipelines (for example `0x8000261500`, 634,598 SPIR-V words). - The process hit the 18 GB cgroup cap and 4 GB of swap, so that later part says nothing about this PR. Setup: CachyOS, RX 9070 XT, RADV Mesa 26.2.4, headless gamescope, `APS5_NO_SNAPSHOT_CHECK=1`. *Tested and written by Claude (AI assistant) on a contributor's machine; Gemini ran the build and the game. AI-assisted: yes.*
xXPBSXx commented 2026-10-15 17:34:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-15T17:34:36Z.


A second title for this change: Ghost of Tsushima (PPSA02225).

Without this PR it aborts within about 10 seconds on the same call (script times 19:00:04 to 19:00:15):

what():  sceNetCtlGetInfo: info code 12 is not implemented
FATAL: abort() (SIGABRT)

(PPSA02225_rH/run_190007.err, line 4 of 50, on main 0029e62f974c453a5f6c7333f3bdb13e770e3903; no [gpu] line before it.)

With this PR (main fa9365ca74acae7c594618b0a857365774cc6f45 + #6227 625525de79d3f5667ec521f51220ea8ea2132edc, merge tree 76d13dc69170242892ceb7c11821c8a8c7260e5f) the title passes that call. The first run on that tree (run_191140.err, 7 lines, counted with Python) has no what() and no FATAL, and its process ended by itself after about a minute (file times 19:11:40 to 19:12:41) without an exception line; I do not know why. In the second run (run_192124.err, 31 lines) the title was still running when the script's 300 s limit ended it (script end 19:26:43); I did not see it exit by itself. It reaches its save data setup (setMemory2 ... -> 0x00000000, line 31) and the log is silent from 19:23:45. It says nothing about the picture: I watched that run and saw a black screen and heard no sound; I did not look into that here.

The comparison is not controlled: the run without the PR is on main 0029e62f9, the runs with it on fa9365ca7 + #6227.

Tested. Windows 10 (19045), MinGW-w64 GCC 15.2, Release; the game selected the NVIDIA GeForce RTX 4080 SUPER (run_192124.out line 24: Selected GPU name=NVIDIA GeForce RTX 4080 SUPER; an AMD Radeon RX 6400 is also listed as a candidate). For the second run ninja -j 8 libs exit 0 (script times 19:20:41 to 19:21:08, directly before it); run_title.ps1, one game at a time, 300 s requested, no input. The title executable is relinked from the reconstructed ELFs (reconstruct_self.py for eboot.bin and sce_module/libc.prx, plus prospero/steamnetworkingsockets.prx with --module-dir prospero), relinked with main 0029e62f9. Not tested: Linux, other GPUs.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6198314289 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6227#issuecomment-6198314289). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-15T17:34:36Z. --- A second title for this change: Ghost of Tsushima (PPSA02225). Without this PR it aborts within about 10 seconds on the same call (script times 19:00:04 to 19:00:15): ``` what(): sceNetCtlGetInfo: info code 12 is not implemented FATAL: abort() (SIGABRT) ``` (`PPSA02225_rH/run_190007.err`, line 4 of 50, on `main` `0029e62f974c453a5f6c7333f3bdb13e770e3903`; no `[gpu]` line before it.) With this PR (`main` `fa9365ca74acae7c594618b0a857365774cc6f45` + #6227 `625525de79d3f5667ec521f51220ea8ea2132edc`, merge tree `76d13dc69170242892ceb7c11821c8a8c7260e5f`) the title passes that call. The first run on that tree (`run_191140.err`, 7 lines, counted with Python) has no `what()` and no `FATAL`, and its process ended by itself after about a minute (file times 19:11:40 to 19:12:41) without an exception line; I do not know why. In the second run (`run_192124.err`, 31 lines) the title was still running when the script's 300 s limit ended it (script end 19:26:43); I did not see it exit by itself. It reaches its save data setup (`setMemory2 ... -> 0x00000000`, line 31) and the log is silent from 19:23:45. It says nothing about the picture: I watched that run and saw a black screen and heard no sound; I did not look into that here. The comparison is not controlled: the run without the PR is on `main` `0029e62f9`, the runs with it on `fa9365ca7` + #6227. **Tested.** Windows 10 (19045), MinGW-w64 GCC 15.2, Release; the game selected the NVIDIA GeForce RTX 4080 SUPER (`run_192124.out` line 24: `Selected GPU name=NVIDIA GeForce RTX 4080 SUPER`; an AMD Radeon RX 6400 is also listed as a candidate). For the second run `ninja -j 8 libs` exit 0 (script times 19:20:41 to 19:21:08, directly before it); `run_title.ps1`, one game at a time, 300 s requested, no input. The title executable is relinked from the reconstructed ELFs (`reconstruct_self.py` for `eboot.bin` and `sce_module/libc.prx`, plus `prospero/steamnetworkingsockets.prx` with `--module-dir prospero`), relinked with `main` `0029e62f9`. Not tested: Linux, other GPUs. AI-assisted (Claude Code).
Pipodi commented 2026-10-16 14:10:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Pipodi on 2026-10-16T14:10:45Z.


Tested on current main 82ddae75b with Ghost of Yōtei (PPSA26344), Windows 11, RTX 4090.

  • Without this PR, the title aborts 3 s after start: sceNetCtlGetInfo: info code 12 is not implemented (std::runtime_error from libSceNetCtl).
  • With it cherry-picked (no conflicts), the title boots normally, and four cold runs went past its loading spinner (runs 180–183, up to 1,000 s).

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6217341520 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6227#issuecomment-6217341520). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-10-16T14:10:45Z. --- Tested on current `main` 82ddae75b with Ghost of Yōtei (PPSA26344), Windows 11, RTX 4090. - Without this PR, the title aborts 3 s after start: `sceNetCtlGetInfo: info code 12 is not implemented` (std::runtime_error from libSceNetCtl). - With it cherry-picked (no conflicts), the title boots normally, and four cold runs went past its loading spinner (runs 180–183, up to 1,000 s). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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!6227
No description provided.