feat(libSceNet): add sceNetEtherStrton #6250

Closed
YousefMohsen0 wants to merge 1 commit from upstream-pr/6250 into main
YousefMohsen0 commented 2026-10-15 07:40:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by YousefMohsen0 on 2026-10-15T07:40:53Z.


What

Adds sceNetEtherStrton to libSceNet: parses xx:xx:xx:xx:xx:xx (hex, either case) into a 6-byte address, the inverse of sceNetEtherNtostr. Other text and null arguments fail with EINVAL and leave the output unchanged. Signature and accepted forms are unverified on hardware; recorded in docs/dev/debt/libSceNet.md.

Tested

Not tested on a title or homebrew; no title ID or halt log line to report. g++ -std=c++20 -Wall -Wextra: no warnings. Linux x86-64 harness against the compiled Export.cpp: valid parse, round-trip with sceNetEtherNtostr, 10 malformed inputs and 2 null arguments. python3 tools/check_conventions.py --base upstream/main passes. Full build and ctest not run.

Checklist

  • Based on current main; no other open PR implements the same functions (verify)
  • 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
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4869912882 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6250). Originally posted by [YousefMohsen0](https://github.com/YousefMohsen0) on 2026-10-15T07:40:53Z. --- ### What Adds `sceNetEtherStrton` to libSceNet: parses `xx:xx:xx:xx:xx:xx` (hex, either case) into a 6-byte address, the inverse of `sceNetEtherNtostr`. Other text and null arguments fail with `EINVAL` and leave the output unchanged. Signature and accepted forms are unverified on hardware; recorded in docs/dev/debt/libSceNet.md. ### Tested Not tested on a title or homebrew; no title ID or halt log line to report. g++ -std=c++20 -Wall -Wextra: no warnings. Linux x86-64 harness against the compiled Export.cpp: valid parse, round-trip with sceNetEtherNtostr, 10 malformed inputs and 2 null arguments. `python3 tools/check_conventions.py --base upstream/main` passes. Full build and ctest not run. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions (verify) - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical debt file - [x] No notes, investigation `.md` files or images added to the repository - [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: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
copilot-pull-request-reviewer[bot] commented 2026-10-15 07:40:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by copilot-pull-request-reviewer[bot] on 2026-10-15T07:40:59Z.

Review: COMMENTED


Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5529730469 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6250#pullrequestreview-5529730469). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/apps/copilot-pull-request-reviewer) on 2026-10-15T07:40:59Z. **Review:** COMMENTED --- Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
github-actions[bot] commented 2026-10-15 08:08:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T08:08:39Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 5836 docs/dev/debt/libSceNet.md L10
PR 6494 docs/dev/debt/libSceNet.md L10

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 6447 core/libs/prx/libSceNet/Export.cpp
docs/dev/debt/libSceNet.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6187527427 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6250#issuecomment-6187527427). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T08:08:39Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 5836](https://www.github.com/boykopovar/AnyPS5/pull/5836) | `docs/dev/debt/libSceNet.md` [L10](https://github.com/boykopovar/AnyPS5/blob/f26eb67c89bfe8a06ccfb51cc6e64dde03a099c2/docs/dev/debt/libSceNet.md#L10) | | | | [PR 6494](https://www.github.com/boykopovar/AnyPS5/pull/6494) | `docs/dev/debt/libSceNet.md` [L10](https://github.com/boykopovar/AnyPS5/blob/f26eb67c89bfe8a06ccfb51cc6e64dde03a099c2/docs/dev/debt/libSceNet.md#L10) | | | 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 6447](https://www.github.com/boykopovar/AnyPS5/pull/6447) | `core/libs/prx/libSceNet/Export.cpp`<br>`docs/dev/debt/libSceNet.md` |

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