feat(libkernel): add LAN relay settings and a loopback skeleton (off by default) #17212
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17212"
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?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-08T14:42:15Z.
What
Adds the configuration and a loopback relay skeleton for a future LAN link between two AnyPS5 instances. Off by default: with
ANYPS5_LAN_LISTENandANYPS5_LAN_PEERSboth unset nothing changes.ANYPS5_LAN_LISTEN(host:port, IPv4 literal, UDP): opens the relay's socket at process start. Port 1 to 65535.ANYPS5_LAN_PEERS(comma-separatedhost:port): parsed and checked; repeated entries count once; needsANYPS5_LAN_LISTEN.docs/dev/ENVIRONMENT.mdrows;docs/dev/debt/libkernel.mdentry that broadcast forwarding is not implemented.Follow-ups (not in this PR): frame format and loop filter; broadcast relay in
sendto; delivery of relayed datagrams to local receivers; multicast.Tested
Linux x86-64 (GCC), archive build through the anyps5 validate script, head
2e46368c7c:BUILD-EXIT 0, andctest -R '^(lan_relay|guest_socket_.*)$': 17 of 17 passed, includinglan_relay(parser, validation, settings, open/close on ephemeral ports, port-in-use refusal, no leaked descriptors, default-off, one-line log) and the existingguest_socket_*tests.tools/check_conventions.pyandgit diff --checkpassed. Windows, macOS and a second machine: not tested.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)Not verified
Pull request closed