feat(libSceNet): implement sceNetShowNetstatEx #8232

Merged
jagrat04 merged 1 commit from upstream-pr/8232 into main 2026-10-24 14:58:43 +00:00
jagrat04 commented 2026-10-20 05:00:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jagrat04 on 2026-10-20T05:00:19Z.


What

Implement sceNetShowNetstatEx in core/libs/prx/libSceNet/Export.cpp:

  • Returns 0 silently without printing extended socket statistics, matching the (void) signature in shadPS4 and the behavior of sceNetShowNetstat and sceNetShowIfconfig.
  • Adds guest unit tests in core/libs/tests/GuestSceNet.cpp verifying success return.
  • Documents the stub in docs/dev/debt/libSceNet.md under Silent stubs.

Tested

  • Windows 11 Enterprise (MinGW GCC 15.2): ninja -C build libSceNet guest_sce_net_tests built cleanly; ctest --test-dir build -V -R guest_sce_net passed (1/1 tests passed 100%).
  • Linux (Ubuntu 24.04 via WSL2, GCC 15): ninja -C build-linux libSceNet guest_sce_net_tests built cleanly; ctest --test-dir build-linux -V -R guest_sce_net passed (1/1 tests passed 100%).
  • python tools/check_conventions.py --base origin/main: passed with 0 violations.
  • python3 tools/pr_overlap.py --branch feat/libSceNet-show-netstat-ex: no overlap with open pull requests.

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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4931235512 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8232). Originally posted by [jagrat04](https://github.com/jagrat04) on 2026-10-20T05:00:19Z. --- ### What Implement `sceNetShowNetstatEx` in `core/libs/prx/libSceNet/Export.cpp`: - Returns 0 silently without printing extended socket statistics, matching the `(void)` signature in shadPS4 and the behavior of `sceNetShowNetstat` and `sceNetShowIfconfig`. - Adds guest unit tests in `core/libs/tests/GuestSceNet.cpp` verifying success return. - Documents the stub in `docs/dev/debt/libSceNet.md` under Silent stubs. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> - Windows 11 Enterprise (MinGW GCC 15.2): `ninja -C build libSceNet guest_sce_net_tests` built cleanly; `ctest --test-dir build -V -R guest_sce_net` passed (1/1 tests passed 100%). - Linux (Ubuntu 24.04 via WSL2, GCC 15): `ninja -C build-linux libSceNet guest_sce_net_tests` built cleanly; `ctest --test-dir build-linux -V -R guest_sce_net` passed (1/1 tests passed 100%). - `python tools/check_conventions.py --base origin/main`: passed with 0 violations. - `python3 tools/pr_overlap.py --branch feat/libSceNet-show-netstat-ex`: no overlap with open pull requests. ### 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
MarcZX10 commented 2026-10-22 02:07:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T02:07:04Z.


I am reviewing #9506, which adds sceNetSetDnsInfo, sceNetSetDns6Info and sceNetGetDns6Info plus 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 in Depends on and the overlap note.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6330952536 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8232#issuecomment-6330952536). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T02:07:04Z. --- I am reviewing #9506, which adds `sceNetSetDnsInfo`, `sceNetSetDns6Info` and `sceNetGetDns6Info` plus 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 in `Depends on` and the overlap note.
jagrat04 commented 2026-10-22 08:18:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jagrat04 on 2026-10-22T08:18:00Z.


@MarcZX10 Thanks for checking! There is no overlap with #9506:

  • Exports: This PR implements sceNetShowNetstatEx only. It does not touch sceNetSetDnsInfo, sceNetSetDns6Info, or sceNetGetDns6Info.
  • Tests & CMake: Tests are in GuestSceNet.cpp and do not touch CMakeLists.txt or GuestNetDnsInfo.cpp.
  • Debt documentation: Touches Silent stubs in docs/dev/debt/libSceNet.md without affecting the DNS entries in Unknown function info.
  • Merge Order: Either PR can land first without issues (Depends on: none). This branch has also been cleanly rebased onto latest main.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6336129056 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8232#issuecomment-6336129056). Originally posted by [jagrat04](https://github.com/jagrat04) on 2026-10-22T08:18:00Z. --- @MarcZX10 Thanks for checking! There is no overlap with #9506: - **Exports**: This PR implements `sceNetShowNetstatEx` only. It does not touch `sceNetSetDnsInfo`, `sceNetSetDns6Info`, or `sceNetGetDns6Info`. - **Tests & CMake**: Tests are in `GuestSceNet.cpp` and do not touch `CMakeLists.txt` or `GuestNetDnsInfo.cpp`. - **Debt documentation**: Touches `Silent stubs` in `docs/dev/debt/libSceNet.md` without affecting the DNS entries in `Unknown function info`. - **Merge Order**: Either PR can land first without issues (`Depends on: none`). This branch has also been cleanly rebased onto latest `main`.
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!8232
No description provided.