feat(libSceNet): implement sceNetShowIfconfigWithMemory #8234
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8234"
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 jagrat04 on 2026-10-20T05:10:26Z.
What
Implement
sceNetShowIfconfigWithMemoryincore/libs/prx/libSceNet/Export.cpp:g_pools) underg_mutex, returningNET_EBADFif invalid.std::runtime_error(__func__)for a valid pool once the net library is initialized, aligning with sibling diagnostics (sceNetShowIfconfigandsceNetShowNetstat) per04f2d9a60f.core/libs/tests/GuestSceNet.cppverifying invalid pool failure, destroyed pool failure, and throwing on valid active pool.docs/dev/debt/libSceNet.mdfolded intosceNetShowIfconfig, sceNetShowNetstat.Tested
ninja -C build-linux libSceNet guest_sce_net_testsbuilt cleanly;ctest --test-dir build-linux -V -R guest_sce_netpassed (1/1 tests passed 100%).python tools/check_conventions.py --base origin/main: passed with 0 violations.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 MarcZX10 on 2026-10-22T02:07:05Z.
I am reviewing #9506, which adds
sceNetSetDnsInfo,sceNetSetDns6InfoandsceNetGetDns6Infoplus a new registered test and debt entry. The overlap bot could not compare some of these branches because of base conflicts, and this PR author has not yet recorded an agreed merge order. Please confirm whether your current changes overlap these exact exports, CMake/test insertion, or debt section, and whether #9506 can land before your PR or should depend on yours. The #9506 author is being asked to record the agreed order inDepends onand the overlap note.Imported from boykopovar/AnyPS5. Originally posted by jagrat04 on 2026-10-22T08:18:01Z.
@MarcZX10 Thanks for checking! There is no overlap with #9506:
sceNetShowIfconfigWithMemoryonly. It does not touchsceNetSetDnsInfo,sceNetSetDns6Info, orsceNetGetDns6Info.GuestSceNet.cppand do not touchCMakeLists.txtorGuestNetDnsInfo.cpp.Silent stubsindocs/dev/debt/libSceNet.mdwithout affecting the DNS entries inUnknown function info.Depends on: none). This branch has also been cleanly rebased onto latestmain.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-24T08:12:06Z.
Review: CHANGES_REQUESTED
Since this was opened, main changed the sibling diagnostics (
04f2d9a60f, "reject unsupported diagnostic output after initialization"):sceNetShowIfconfigandsceNetShowNetstatnow throw once the net library is initialized, because the native output is not implemented, andGuestSceNet.cpppins that (Failed(sceNetShowIfconfig(), 200)). Returning 0 fromsceNetShowIfconfigWithMemoryfor a valid pool is the plausible-success-where-main-threw case we reject.core/libs/prx/libSceNet/Export.cpp:2289: keep the pool check (NET_EBADFfor an unknown pool), but for a valid pool throw likesceNetShowIfconfig(throw std::runtime_error(__func__)) instead ofreturn 0.core/libs/tests/GuestSceNet.cpp:280: dropsceNetShowIfconfigWithMemory(pool) == 0; the invalid-pool rows (-1, destroyed pool) stay and still fail without the change. Pin the valid-pool case as a throw if the harness has a way to (see how line 1690 handlessceNetShowIfconfig).docs/dev/debt/libSceNet.md:5: this is no longer a silent stub. Fold it into the existingsceNetShowIfconfig, sceNetShowNetstatline (initialized calls throw).Rebase onto current main when you push.