feat(libSceNet): implement sceNetShowPolicy #8225

Merged
jagrat04 merged 1 commit from upstream-pr/8225 into main 2026-10-24 10:18:49 +00:00
jagrat04 commented 2026-10-20 04:40:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jagrat04 on 2026-10-20T04:40:10Z.


What

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

  • Returns 0 silently without printing policy info, matching sceNetShowIfconfig and sceNetShowNetstat which follow shadPS4.
  • 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-policy: 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:4931093621 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8225). Originally posted by [jagrat04](https://github.com/jagrat04) on 2026-10-20T04:40:10Z. --- ### What Implement `sceNetShowPolicy` in `core/libs/prx/libSceNet/Export.cpp`: - Returns 0 silently without printing policy info, matching `sceNetShowIfconfig` and `sceNetShowNetstat` which follow shadPS4. - 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-policy`: 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
github-actions[bot] commented 2026-10-20 04:40:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T04:40:52Z.


Progress report (ab347d1 → 08d4c3c)

📈 System libraries: 42.36% (+0.01%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceNet sceNetShowPolicy
⚪ 1 behaviourally empty (constant return or throw)
Library Name
libSceNet sceNetShowPolicy
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6283534369 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8225#issuecomment-6283534369). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-20T04:40:52Z. --- <!-- progress-report --> ### Progress report (ab347d1 → 08d4c3c) 📈 **System libraries**: 42.36% (+0.01%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceNet | `sceNetShowPolicy` | </details> <details> <summary>⚪ 1 behaviourally empty (constant return or throw)</summary> | Library | Name | | - | - | | libSceNet | `sceNetShowPolicy` | </details>
xXPBSXx commented 2026-10-20 23:43:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-20T23:43:07Z.


Independent Windows run of this PR (data only).

Environment: Windows 10 Pro 10.0.19045, Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT), Release, BUILD_TESTING=ON. Merge-tree of the PR head against main 339217ebc9 is clean. I built only guest_sce_net_tests; ctest -N -R guest_sce_net lists exactly one test.

Results (3 runs each):

  • PR head: guest_sce_net passes 3/3.
  • Baseline: I kept the PR's test and replaced only core/libs/prx/libSceNet/Export.cpp with the version from the PR's merge base (11ee778434), then rebuilt. The test fails 3/3 (exit 0xc0000409, a failed Require). I restored the PR's Export.cpp afterwards.

Not run: other platforms, the other SceNet tests, the full repository CTest, and any title or console run.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6304317019 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8225#issuecomment-6304317019). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-20T23:43:07Z. --- Independent Windows run of this PR (data only). **Environment:** Windows 10 Pro 10.0.19045, Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT), Release, BUILD_TESTING=ON. Merge-tree of the PR head against `main` 339217ebc9 is clean. I built only `guest_sce_net_tests`; `ctest -N -R guest_sce_net` lists exactly one test. **Results (3 runs each):** - PR head: `guest_sce_net` passes 3/3. - Baseline: I kept the PR's test and replaced only `core/libs/prx/libSceNet/Export.cpp` with the version from the PR's merge base (`11ee778434`), then rebuilt. The test fails 3/3 (exit 0xc0000409, a failed `Require`). I restored the PR's `Export.cpp` afterwards. **Not run:** other platforms, the other SceNet tests, the full repository CTest, and any title or console run. AI-assisted (Claude Code).
MarcZX10 commented 2026-10-22 02:07:03 +00:00 (Migrated from github.com)

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


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:6330952238 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8225#issuecomment-6330952238). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T02:07:03Z. --- 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:17:59 +00:00 (Migrated from github.com)

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


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

  • Exports: This PR implements sceNetShowPolicy 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:6336128648 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8225#issuecomment-6336128648). Originally posted by [jagrat04](https://github.com/jagrat04) on 2026-10-22T08:17:59Z. --- @MarcZX10 Thanks for checking! There is no overlap with #9506: - **Exports**: This PR implements `sceNetShowPolicy` 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!8225
No description provided.