Repository navigation
feat(net): parse Ethernet address strings - #8204
oneandonlydean merged 8 commits into
Conversation
|
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.
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.
|
|
Thanks, the parser looks right. I compared it against the shadPS4 function you cite on 4 million generated strings, and the results and outputs matched in every case. One thing blocks the merge, plus two small text fixes:
|
|
A data point from a PS5, in case it helps this PR. I measured
So the strict validation and the AI-assisted: yes (Claude Code). The measurements are from a console I have access to. |
|
@realshinmalphur, and thanks @orezraey for measuring it on a console. That measurement changes what this function should do: the parser here (and the shadPS4 version I compared it against) validates its input, but firmware 13.60 doesn't. Against that,
Could you change the null case to |
|
@oneandonlydean @orezraey Thanks for the review and console measurements. Updated in f923ebb (source: 89da7e6, tests: d5e2042).
Validation: built the actual complete libc, libkernel, libSceNet and libSceNetCtl targets using the disclosed external harness. Full GuestSceNet and focused parser tests each passed ten consecutive runs (12.03 s total); actual Export.cpp plus focused tests passed Clang ASan/UBSan. Updated tests fail against our previous strict implementation. Conventions/whitespace checks pass. I have no PS5; the console evidence is @orezraey’s, not an independent console rerun. Please rerun the collaborator-triggered full Linux/Windows build for this head. AI-assisted: yes (Codex). |
|
Windows test report: guest_sce_net passed in 1.42 seconds. |
|
I am reviewing #9506, which adds |
|
@MarcZX10 @Noxy-HNR I compared #9506 at bed7b5c against #8204 updated on main 6ef5a1c. Our update is now published at 24b7977; its full tree matches the locally tested merge exactly.
Author-side ordering confirmation: #9506 may land before #8204 without depending on us. There is no functional prerequisite either way; whichever lands second must resolve the adjacent debt hunk without dropping either change. Depends on remains none, and this confirmation is now in our description. @Noxy-HNR please confirm/record the #9506-first order on your side if that is your preferred landing order; I am not treating this as a bilateral agreement yet or as resolving your other PR overlaps. Separately resolved #8204’s conflict with current main, preserving main’s new debt entries and removing the reintroduced obsolete EtherStrton placeholder debt bullet. No parser behavior changes. Rebuilt actual libc/libkernel/libSceNet/libSceNetCtl via the previously disclosed external harness; complete current GuestSceNet plus focused parser tests each pass three consecutive runs (2/2, 3.60 seconds total). Conventions/whitespace pass. This is not a combined runtime test of #9506, full-project CI or a console run. @lost9409 thanks for the separately reported Windows focused test. Full Linux/Windows workflow rerun is still requested for this new head. AI-assisted: yes (Codex). |
What
Implement
sceNetEtherStrton(const char*, NetEtherAddr*), replacing the throwing placeholder added by #8106. Updated after @orezraey's PS5 firmware 13.60 probe and log and @oneandonlydean's review:EINVAL(0x80410116, errno 22). Successful calls preserve guest errno and write exactly six bytes.EINVALwithout changing the destination. Do not reproduce the console's reads beyond the terminating NUL. This includes short single-digit-group inputs.The original behavioral reference was the strict shadPS4 parser at d615b388, lines 1274–1297; the PS5 measurements supersede that validation behavior. The PS5 3.20 inventory confirms the export name and NID
b-bFZvNV59I.Current main already declares this export, so this adds an implementation, not a new declared export. Previous attempt #6250 is closed/unmerged. No title-unblock or performance claim. Main was integrated through GitHub's conflict-resolution merge, not a history-rewriting rebase; the duplicate placeholder and its obsolete debt bullet are removed.
Overlap coordination (2026-10-22): compared #9506 at
bed7b5c2ewith this PR updated on main6ef5a1c4c. No shared export implementation or CMake/test insertion: this PR changes onlysceNetEtherStrton, addsCheckEtherAddressto existing GuestSceNet, and replaces its debt entry. #9506 changes DNS state/getters/setters, adds GuestNetDnsInfo and its CMake registration, and changes separate DNS debt entries. A pairwise merge auto-merges Export.cpp; the only textual conflict is adjacent Ether/DNS debt lines. From this PR author's side, #9506 may land first without depending on #8204; retain both entries and resolve that textual conflict whichever lands second. No functional dependency, soDepends on: none. This is our author-side consent, not a claim that #9506's author has already confirmed a bilateral order or resolved its other overlaps.Tested
Linux 7.2.9-2-cachyos, GCC 16.2.1 and Clang 23.1.3. Main integration tested against
d34da5d69:Console measurements belong to @orezraey; I have no PS5 and did not independently reproduce them. No full-project build, Windows test or title execution was performed. Please run the collaborator-triggered full Linux/Windows Build workflow before merge. The overlap tool's GitHub step requires local gh authentication, which is unavailable; the automatic overlap check remains needed.
2026-10-22 refresh: integrated main
6ef5a1c4c, retaining its new debt entries and keeping only the updated EtherStrton entry. Parser implementation and behavioral tests are unchanged. Rebuilt the same actual library targets and reran the current complete GuestSceNet executable and focused parser test three times each: 2/2 pass, 3.60 seconds total. Conventions and whitespace checks pass. This was not a combined runtime test of #9506. @lost9409 separately reports one Windows 11 focused guest_sce_net pass in 1.42 seconds, applying our earlierf923ebbfiles to basea6dcea9with unrelated fixes #8310/#9056; that is contributor-provided evidence, not our own Windows/full-suite run.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)