feat(winrt): secure device association over loopback #19
No reviewers
Labels
No labels
area: audio
area: d3d11
area: d3d12
area: gdk
area: gui
area: kernel
area: loader
area: shaders
area: video
area: winrt
bug
compat
console: series-xs
console: xbox-one
duplicate
enhancement
graphics-glitch
needs-log
needs-repro
not-a-dump
regression
status: boots
status: in-game
status: intro
status: menu
status: nothing
status: playable
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/sammwyy--xvalkyrie!19
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-19"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@landovg on GitHub · 2026-11-27 18:42 UTC · original
landovg:feat/sda-loopback→main· +1311 −11 · 9 files · 1 commits · openCloses #18 (the design issue for this change).
What
Windows.Xbox.Networking's
SecureDeviceAssociationTemplatereturned no templates, and every association failed as offline. This adds:appx::inspect_manifestreads thewindows.xbox.networkingextension, under an application (where titles have it) or under the package:SecureIpProtocol,BoundPortrange, usages;MultiplayerSessionRequirement.Malformed, reversed and out-of-range ports are refused.
winrt/networking, reached fromactivation_factorylike the input and storage classes:SecureDeviceAssociationTemplatestatics:TemplatesandGetTemplateByName(exact names).CreateAssociationAsyncandCreateAssociationForPortsAsynccomplete at once with a Ready association. Its remote socket address is a peer on this machine at the acceptor's port (or the port asked for):::1, or the IP address inXV_SDA_PEER. Ports outside the template's sockets are refused.SecureDeviceAssociationstatics:GetAssociationBySocketAddressBytes.DestroyAsync(→ Destroyed).The two inert rows these classes replace are removed: statics slots 6 and 7.
Not implemented yet:
RemoteHostName/LocalHostName(E_NOTIMPL);GetAssociationByHostNamesAndPorts;AssociationIncomingis never raised).Where the interface details come from
The GUIDs and member order are from WinDurango's
idl/Windows.Xbox.Networking.idl(LGPL), and they agree with this repository's own inert table:GetTemplateByName, slot 7Templates, under the same statics IID46745a18-…;No SDK headers or console material is included.
Tested
Windows 11, VS 2022 Build Tools 17.14 (MSVC 14.44), Release build.
build.cmd --test: CTest 2/2.xv_testsfrom its fixture directory: 141/141 test cases, 22,370 assertions (before: 134/134, 22,240).[network]cases (130 assertions), all on synthetic manifests:XV_SDA_PEER;::1and127.0.0.1.clang-format --dry-run: clean on every touched file.🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.