Repository navigation
Conversation
… sceNetSetDns6Info
|
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.
|
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Whole batch: the full This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the new export forwards to the existing IPv6 DNS setter, which performs initialization, flag, guest-memory, and address validation before updating the override.
What I ran
Reviewed head 3fc75c051f94d66829af8e5a4a02c2ac7eee58c2. No tests or builds were run. The description reports Windows-host checks, but I did not run them.
Results
| Check | Result | Note |
|---|---|---|
| Code review | passed | Forward matches the IPv4 pattern |
| Tests and build | not run | No independent execution |
Findings
Blocking
None.
Non-blocking
None.
Not verified
No tests, build, or console behavior were run. Read core/libs/prx/libSceNet/Export.cpp and docs/dev/debt/changes/feat-libnet-dns6-forward.md; both reviewed files were present in the manifest. files.json was unavailable through the reader, so excluded-file details were not verified.
To get this to a good state
Nothing is required.
|
Windows run of 3fc75c0, merged onto main bca96e3 (merge e4d719dc4d). The merge is clean and adds only this PR's change: 2 files, +6/-2. In this comment, "the test" means Host: Ryzen 9 9950X3D, Windows 11 Pro 26300, WinLibs GCC 15.2, Ninja, Release. Tests: Existing runs:
This run traces that failure to this PR alone, then adds a negative control and mutations for a replacement check. Results
The IPv4 forward (57e6abe, void CheckKernelDns6(bool initialized) {
NetDns6Info info6{};
std::memset(&info6, 0x5a, sizeof(info6));
const NetDns6Info before6 = info6;
if (!initialized) {
for (const std::uint32_t flags : {0u, 1u, 0xffffffffu}) {
Require(Failed(sceNetSetDns6InfoToKernel(&info6, flags), kEnotinit));
Require(Failed(sceNetSetDns6InfoToKernel(nullptr, flags), kEnotinit));
Require(std::memcmp(&info6, &before6, sizeof(info6)) == 0);
}
return;
}
NetDns6Info set6{};
Require(Failed(sceNetSetDns6InfoToKernel(&set6, 0), kEinval));
set6.primaryAddress.bytes[0] = 0x20;
set6.primaryAddress.bytes[15] = 0x01;
Require(Failed(sceNetSetDns6InfoToKernel(&set6, 2), kEinval));
Require(Failed(sceNetSetDns6InfoToKernel(nullptr, 1), kEinval));
Require(sceNetSetDns6InfoToKernel(&set6, 0) == 0);
Require(sceNetGetDns6Info(&info6, 0) == 1 && std::memcmp(&info6, &set6, sizeof(set6)) == 0);
set6.secondaryAddress.bytes[0] = 0x26;
Require(sceNetSetDns6InfoToKernel(&set6, 0) == 0);
Require(sceNetGetDns6Info(&info6, 0) == 2 && std::memcmp(&info6, &set6, sizeof(set6)) == 0);
void* page = UnreadablePage();
Require(page != nullptr);
Require(Failed(sceNetSetDns6InfoToKernel(static_cast<const NetDns6Info*>(page), 1), kEinval));
Require(Failed(sceNetSetDns6InfoToKernel(static_cast<const NetDns6Info*>(page), 0), kEfault));
Require(sceNetGetDns6Info(&info6, 0) == 2 && std::memcmp(&info6, &set6, sizeof(set6)) == 0);
#ifdef _WIN32
Require(VirtualFree(page, 0, MEM_RELEASE) != 0);
#else
Require(munmap(page, 4096) == 0);
#endif
Require(sceNetSetDns6InfoToKernel(nullptr, 0) == 0);
Require(sceNetGetDns6Info(&info6, 0) == 0);
}
Once the test file has this replacement or an equivalent, AI-assisted: yes |
|
@GRG-DA, I am closing this one. The forward to sceNetSetDns6Info is clean, but it is inferred from the file pattern, with no console probe, no test and no title we know of that calls it, so it would not change what any game does. If you find a title that calls sceNetSetDns6InfoToKernel, or see what it does on a PS5, please reopen with that and it goes to review. |
What
Implement
sceNetSetDns6InfoToKernelincore/libs/prx/libSceNet/Export.cppby forwarding to the already-implementedsceNetSetDns6Info, matching the existingsceNetSetDnsInfoToKernel→sceNetSetDnsInfopattern in the same file. The forward performs the real IPv6 DNS override work (init and flag validation, checked guest read, primary-address validation, storingg_dns6Override) rather than returning a fabricated success. A debt fragment records that the forwarding is inferred from the in-file pattern and is unmeasured on PS5 hardware.All other stubbed exports in this library require PS5-specific kernel behaviour (configuration, DHCP/WLAN/PPPoE/routing daemons, BPF dumps, kernel-table text and statistics) with no public source, so they remain throwing and are documented in
docs/dev/debt/libSceNet.md.Tested
Windows host.
python tools/progress.py: libraries 17227/39548 → 17228/39548; libSceNet 115/232 → 116/232.python tools/check_conventions.py --base origin/main: all checks passed.python tools/debt_fold.py --checkandgit diff --check main...HEAD: clean.python tools/pr_overlap.py --nameson all libSceNet stub names before implementing:sceNetGetsockoptis claimed by open PR #18108 and was skipped; this function had no overlap. No build, ctest, title or homebrew run was performed for this one-line forward.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)