feat(gateway): add relay Ethernet datagram helpers
GatewayConnection can now send and receive Ethernet frames over the admitted relay QUIC connection. Outgoing frames are wrapped in the shared overlay format with the gateway's assigned room id and peer id; incoming datagrams are ignored unless they are Ethernet frames for the assigned room from another peer. The receive helper also parses the payload as an Ethernet frame before exposing it, which keeps the future AF_PACKET bridge from injecting malformed runt payloads if the relay path ever misbehaves. The loopback connector test now verifies the full post-handshake datagram path: the gateway sends a frame to the test relay, the relay validates the overlay metadata, and the gateway receives a relay-sent Ethernet frame back. Test Plan: - cargo fmt --check - cargo test --workspace - cargo clippy --workspace --all-targets -- -D warnings Refs: PLAN.md gateway relay datagram send/receive
This commit is contained in:
Generated
+2
@@ -453,8 +453,10 @@ name = "lanparty-gateway"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bytes",
|
||||
"clap",
|
||||
"lanparty-ctrl",
|
||||
"lanparty-proto",
|
||||
"libc",
|
||||
"quinn",
|
||||
"rcgen",
|
||||
|
||||
Reference in New Issue
Block a user