fix(libSceNet): silent stub for sceNetShowNetstat #6286

Closed
mazen320 wants to merge 1 commit from upstream-pr/6286 into main
mazen320 commented 2026-10-15 09:00:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T09:00:51Z.


What

sceNetShowNetstat no longer calls NotImplemented_nid_no_patch. It returns 0 with no netstat dump.

PPSA11386 imports it with an unknown signature. Debt moved into Silent stubs. New guest_net_show_netstat covers the return.

Silent stub evidence (CONTRIBUTING)

A silent stub is allowed only when it unblocks a title and only affects the UI (or is otherwise safe to ignore). Load-stop alone is not enough (see #6274).

Check Evidence
Unblocks a title PPSA11386 fails to resolve the import without this export
Safe to ignore / not runtime control Name is a Show* diagnostic dump; the stub produces no host netstat output and does not change sockets or routing
Not exercised at start-up Technical debt records that PPSA11386 imports it and does not call it during start-up (libSceNet.md)

This is the same class of exception as an unused import: returning 0 does not skip measured net behaviour on the observed path. If reviewers want a stricter “dialog/UI library only” reading, this PR can be withdrawn.

Tested

Windows 11. python tools/check_conventions.py --base upstream/main passed. Built the original libc, libkernel, libSceNet and test targets from this PR head in a separate CMake harness. ctest --output-on-failure -R ^guest_net_show_netstat$ passed on 2026-10-15. This is local targeted validation; upstream full builds remain skipped.

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: PPSA11386 (ShowNetstat import)
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4870786993 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6286). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T09:00:51Z. --- ### What `sceNetShowNetstat` no longer calls `NotImplemented_nid_no_patch`. It returns 0 with no netstat dump. PPSA11386 imports it with an unknown signature. Debt moved into Silent stubs. New `guest_net_show_netstat` covers the return. ### Silent stub evidence ([CONTRIBUTING](https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md)) A silent stub is allowed only when it unblocks a title and only affects the UI (or is otherwise safe to ignore). Load-stop alone is not enough (see #6274). | Check | Evidence | | --- | --- | | Unblocks a title | PPSA11386 fails to resolve the import without this export | | Safe to ignore / not runtime control | Name is a `Show*` diagnostic dump; the stub produces no host netstat output and does not change sockets or routing | | Not exercised at start-up | Technical debt records that PPSA11386 **imports it and does not call it during start-up** ([libSceNet.md](https://github.com/boykopovar/AnyPS5/blob/fix/net-show-netstat-silent-stub/docs/dev/debt/libSceNet.md)) | This is the same class of exception as an unused import: returning 0 does not skip measured net behaviour on the observed path. If reviewers want a stricter “dialog/UI library only” reading, this PR can be withdrawn. ### Tested Windows 11. `python tools/check_conventions.py --base upstream/main` passed. Built the original libc, libkernel, libSceNet and test targets from this PR head in a separate CMake harness. `ctest --output-on-failure -R ^guest_net_show_netstat$` passed on 2026-10-15. This is local targeted validation; upstream full builds remain skipped. ### 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: PPSA11386 (ShowNetstat import) - [x] GPUs tested: n/a - [x] AI-assisted: yes
mazen320 commented 2026-10-15 09:01:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T09:01:05Z.


Overlap (#6285)

Bot may flag docs/dev/debt/libSceNet.md / CMakeLists.txt (Silent stubs section / guest_net_* tests). Production change here is sceNetShowNetstat only. #6285 is sceNetShowIfconfig — rebase debt/CMake hunk if that PR lands first. Depends on: none.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6188419721 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6286#issuecomment-6188419721). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T09:01:05Z. --- ### Overlap (#6285) Bot may flag `docs/dev/debt/libSceNet.md` / `CMakeLists.txt` (Silent stubs section / guest_net_* tests). Production change here is `sceNetShowNetstat` only. #6285 is `sceNetShowIfconfig` — rebase debt/CMake hunk if that PR lands first. Depends on: none.
github-actions[bot] commented 2026-10-15 09:01:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T09:01:35Z.


Progress report (0afa6a6 → b162855)

📈 System libraries: 88.74% (+0.03%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceNet sceNetShowNetstat
⚪ 1 behaviourally empty (constant return or throw)
Library Name
libSceNet sceNetShowNetstat
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6188429427 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6286#issuecomment-6188429427). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T09:01:35Z. --- <!-- progress-report --> ### Progress report (0afa6a6 → b162855) 📈 **System libraries**: 88.74% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceNet | `sceNetShowNetstat` | </details> <details> <summary>⚪ 1 behaviourally empty (constant return or throw)</summary> | Library | Name | | - | - | | libSceNet | `sceNetShowNetstat` | </details>
github-actions[bot] commented 2026-10-15 09:27:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T09:27:06Z.


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 5836 core/libs/prx/libSceNet/CMakeLists.txt
core/libs/prx/libSceNet/Export.cpp
docs/dev/debt/libSceNet.md
PR 5930 core/libs/prx/libSceNet/CMakeLists.txt
core/libs/prx/libSceNet/Export.cpp
PR 6044 core/libs/prx/libSceNet/CMakeLists.txt
PR 6140 core/libs/prx/libSceNet/Export.cpp
PR 6142 core/libs/prx/libSceNet/Export.cpp
PR 6447 core/libs/prx/libSceNet/Export.cpp
docs/dev/debt/libSceNet.md
PR 6494 core/libs/prx/libSceNet/Export.cpp
docs/dev/debt/libSceNet.md
PR 6603 core/libs/prx/libSceNet/Export.cpp
docs/dev/debt/libSceNet.md
PR 6886 core/libs/prx/libSceNet/Export.cpp
docs/dev/debt/libSceNet.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6188884469 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6286#issuecomment-6188884469). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T09:27:06Z. --- <!-- pr-overlap --> 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 5836](https://www.github.com/boykopovar/AnyPS5/pull/5836) | `core/libs/prx/libSceNet/CMakeLists.txt`<br>`core/libs/prx/libSceNet/Export.cpp`<br>`docs/dev/debt/libSceNet.md` | | [PR 5930](https://www.github.com/boykopovar/AnyPS5/pull/5930) | `core/libs/prx/libSceNet/CMakeLists.txt`<br>`core/libs/prx/libSceNet/Export.cpp` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libSceNet/CMakeLists.txt` | | [PR 6140](https://www.github.com/boykopovar/AnyPS5/pull/6140) | `core/libs/prx/libSceNet/Export.cpp` | | [PR 6142](https://www.github.com/boykopovar/AnyPS5/pull/6142) | `core/libs/prx/libSceNet/Export.cpp` | | [PR 6447](https://www.github.com/boykopovar/AnyPS5/pull/6447) | `core/libs/prx/libSceNet/Export.cpp`<br>`docs/dev/debt/libSceNet.md` | | [PR 6494](https://www.github.com/boykopovar/AnyPS5/pull/6494) | `core/libs/prx/libSceNet/Export.cpp`<br>`docs/dev/debt/libSceNet.md` | | [PR 6603](https://www.github.com/boykopovar/AnyPS5/pull/6603) | `core/libs/prx/libSceNet/Export.cpp`<br>`docs/dev/debt/libSceNet.md` | | [PR 6886](https://www.github.com/boykopovar/AnyPS5/pull/6886) | `core/libs/prx/libSceNet/Export.cpp`<br>`docs/dev/debt/libSceNet.md` |
mazen320 commented 2026-10-15 09:33:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T09:33:42Z.


Overlap

Bot flagged docs/dev/debt/libSceNet.md with #5928. This PR is Net sceNetShowNetstat silent stub only. Depends on: none.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6189000345 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6286#issuecomment-6189000345). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T09:33:42Z. --- ### Overlap Bot flagged `docs/dev/debt/libSceNet.md` with #5928. This PR is Net `sceNetShowNetstat` silent stub only. **Depends on: none.**
mazen320 commented 2026-10-15 15:36:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T15:36:47Z.


Silent-stub evidence (re #6274 bar)

CONTRIBUTING allows a silent stub only when it unblocks a title and only affects the UI (or is otherwise safe to ignore).

For sceNetShowNetstat:

  • It is a Show* diagnostic dump (no host netstat output), not Acm/audio or FlipMaster-style runtime control.
  • Debt/title note: PPSA11386 imports it and does not call it during start-up.

Happy to withdraw this too if reviewers want a stricter “must be dialog/UI library” reading.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6195959660 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6286#issuecomment-6195959660). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T15:36:47Z. --- ### Silent-stub evidence (re #6274 bar) CONTRIBUTING allows a silent stub only when it unblocks a title **and** only affects the UI (or is otherwise safe to ignore). For `sceNetShowNetstat`: - It is a `Show*` diagnostic dump (no host netstat output), not Acm/audio or FlipMaster-style runtime control. - Debt/title note: PPSA11386 **imports it and does not call it during start-up**. Happy to withdraw this too if reviewers want a stricter “must be dialog/UI library” reading.
mazen320 commented 2026-10-17 08:34:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-17T08:34:30Z.


Closing. sceNetShowNetstat already returns 0 on main, and guest_sce_net already checks that return. That landed in #4785. Rebasing this branch only adds a second test of the same call.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6231799597 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6286#issuecomment-6231799597). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-17T08:34:30Z. --- Closing. sceNetShowNetstat already returns 0 on main, and guest_sce_net already checks that return. That landed in #4785. Rebasing this branch only adds a second test of the same call.

Pull request closed

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!6286
No description provided.