Skip to content

feat(libSceNet): implement sceNetShowRouteWithMemory - #8235

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
jagrat04:feat/libSceNet-show-route-with-memory
Oct 24, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
jagrat04:feat/libSceNet-show-route-with-memory

Conversation

@jagrat04

Copy link
Copy Markdown
Contributor

What

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

  • Validates the memory pool ID against active pools (g_pools) under g_mutex, returning NET_EBADF if invalid.
  • Returns 0 silently if valid, matching the (int memid) signature and behavior in shadPS4 and sceNetShowNetstatWithMemory.
  • Adds guest unit tests in core/libs/tests/GuestSceNet.cpp verifying invalid pool failure, active pool success, and destroyed pool failure.
  • 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.
  • Verified no overlap with open PRs on GitHub for sceNetShowRouteWithMemory.

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

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 20, 2026
@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

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/Export.cpp
core/libs/tests/GuestSceNet.cpp
docs/dev/debt/libSceNet.md
PR 7201 core/libs/prx/libSceNet/Export.cpp
PR 7511 core/libs/tests/GuestSceNet.cpp
PR 9727 core/libs/prx/libSceNet/Export.cpp
core/libs/tests/GuestSceNet.cpp
docs/dev/debt/libSceNet.md
PR 9733 core/libs/prx/libSceNet/Export.cpp
docs/dev/debt/libSceNet.md
PR 10502 core/libs/prx/libSceNet/Export.cpp
core/libs/tests/GuestSceNet.cpp
docs/dev/debt/libSceNet.md

@jagrat04
jagrat04 force-pushed the feat/libSceNet-show-route-with-memory branch from 99d119d to 8175ea8 Compare October 20, 2026 05:50
@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Progress report (17f5335 → a7d4d04)

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

✅ 1 implemented
Library Name
libSceNet sceNetShowRouteWithMemory

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 20, 2026
@xXPBSXx

xXPBSXx commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

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 339217e 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 (1ed63f63c2), 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).

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 21, 2026
@adriadam10 adriadam10 self-assigned this Oct 21, 2026
@adriadam10
adriadam10 force-pushed the feat/libSceNet-show-route-with-memory branch from 8175ea8 to 68c6f18 Compare October 21, 2026 11:07
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Oct 21, 2026
@jagrat04
jagrat04 force-pushed the feat/libSceNet-show-route-with-memory branch from 68c6f18 to 697beda Compare October 21, 2026 15:37
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Oct 21, 2026
@MarcZX10

Copy link
Copy Markdown
Contributor

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
jagrat04 force-pushed the feat/libSceNet-show-route-with-memory branch from 697beda to a7d4d04 Compare October 22, 2026 04:45
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 22, 2026
@jagrat04

Copy link
Copy Markdown
Contributor Author

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

  • Exports: This PR implements sceNetShowRouteWithMemory 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.

@adriadam10
adriadam10 merged commit 3102f39 into boykopovar:main Oct 24, 2026
10 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Re-checked against current main: pool validation matches sceNetShowNetstatWithMemory, the new CheckNetstat rows (invalid, live and destroyed pool) fail without the change, and the debt line stays under Silent stubs; merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants