feat(libSceNet): implement Show*WithMemory diagnostics and sceNetGetStatisticsInfo #12288
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12288"
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 MarcZX10 on 2026-10-28T07:39:31Z.
What
Implements four libSceNet exports that threw
NotImplemented_nid_no_patch:sceNetShowIfconfigWithMemory,sceNetShowPolicyWithMemory,sceNetShowRoute6WithMemory: validate the memory pool id (NET_EBADFwith errno for an unknown or destroyed pool) and return success without printing, exactly as the existingsceNetShowRouteWithMemorydoes. Reference for the behaviour: shadPS4src/core/libraries/net/net.cpp.sceNetGetStatisticsInfo: the 24-byte statistics block (NetStatisticsInfo, sixint32) is filled with "plenty free, nothing queued"; a null pointer fails withNET_EFAULTand errno. Layout and values follow shadPS4net.cpp/net_types.h; not measured on a console.Everything else in the library that still throws was left untouched on purpose. I could not find a credible public source for its prototype and behaviour (shadPS4 only has
LOG_ERROR(STUBBED)bodies with no signatures for the Sync, Dump, EventCallback, Dhcp, Wlan, route/ARP/interface-table andsceNetCtl*IpcIntgroups), andsceNetGetsockoptEx,sceNetSetsockoptEx,sceNetSocketInternal,sceNetSysctl,sceNetInetNtopWithScopeId,sceNetInetPtonWithScopeIdandsceNetConfigGetDefaultRouteare already implemented by open PR #9578. The new silent stubs are listed indocs/dev/debt/libSceNet.md.Tested
guest_sce_net(ctest) passes with the new cases incore/libs/tests/GuestSceNet.cpp(invalid pool, live pool, destroyed pool for the three diagnostics; null pointer, field invariants and ignored flags for the statistics call).python3 tools/check_conventions.py --base upstream/main,test_public_headers.py --audit-onlyandgit diff --checkpass.Checklist