fix(libSceNetCtl): answer the DHCP host name, PPPoE name and proxy server as empty strings #6227
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6227"
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 Celegans12 on 2026-10-15T05:29:47Z.
What
Since #5056,
sceNetCtlGetInfothrows for every info code it does not model. PPSA26344 asks for code 12, the DHCP host name, during boot, so on currentmainit aborts one second in withsceNetCtlGetInfo: 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:
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
maina077a88df5. Windows 11 (MinGW-w64 GCC 15.2.0) and Linux: configure -DBUILD_TESTING=ON, targeted test builds, ctest.guest_net_ctlpasses (1/1)maind92a8dad:guest_net_ctlandguest_netctl_ap_dialogpass (2/2)maina077a88df5plus local work in progress) with this commit: boots and reaches the opening cinematic; without it, it aborted at 1 sguest_net_ctlnow requires codes 12, 13 and 20 to return 0 with an empty string and keeps the throw check for 5-10 and 21; withmain'sExport.cppit fails on code 12.Not tested: console behaviour.
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)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.
main)docs/dev/debt/libSceNetCtl.mdL5docs/dev/debt/libSceNetCtl.mdL5core/libs/prx/libSceNetCtl/Export.cppL44-45, L51, L351core/libs/tests/GuestNetCtl.cppL127-135docs/dev/debt/libSceNetCtl.mdL5Some 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.
docs/dev/debt/libSceNetCtl.mdcore/libs/tests/GuestNetCtl.cppImported 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
maind92a8dad3: Ghost of Yōtei aborts before its first present withsceNetCtlGetInfo: info code 12 is not implemented(core/libs/prx/libSceNetCtl/Export.cpp:352).With this PR merged on top (clean merge,
guest_net_ctlandguest_netctl_ap_dialogpass), that message is gone:what()isVideoOut: presentation thread cannot stop itself, during teardown after the timeout's SIGINT.0x8000261500, 634,598 SPIR-V words).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.
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):
(
PPSA02225_rH/run_190007.err, line 4 of 50, onmain0029e62f974c453a5f6c7333f3bdb13e770e3903; no[gpu]line before it.)With this PR (
mainfa9365ca74acae7c594618b0a857365774cc6f45+ #6227625525de79d3f5667ec521f51220ea8ea2132edc, merge tree76d13dc69170242892ceb7c11821c8a8c7260e5f) the title passes that call. The first run on that tree (run_191140.err, 7 lines, counted with Python) has nowhat()and noFATAL, 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
main0029e62f9, the runs with it onfa9365ca7+ #6227.Tested. Windows 10 (19045), MinGW-w64 GCC 15.2, Release; the game selected the NVIDIA GeForce RTX 4080 SUPER (
run_192124.outline 24:Selected GPU name=NVIDIA GeForce RTX 4080 SUPER; an AMD Radeon RX 6400 is also listed as a candidate). For the second runninja -j 8 libsexit 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.pyforeboot.binandsce_module/libc.prx, plusprospero/steamnetworkingsockets.prxwith--module-dir prospero), relinked withmain0029e62f9. Not tested: Linux, other GPUs.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by Pipodi on 2026-10-16T14:10:45Z.
Tested on current
main82ddae75bwith Ghost of Yōtei (PPSA26344), Windows 11, RTX 4090.sceNetCtlGetInfo: info code 12 is not implemented(std::runtime_error from libSceNetCtl).🤖 Generated with Claude Code