Files
softlan-vpn/crates/lanparty-relay
ddidderr a4f6cb3f4c test(relay): cover ping-shaped session frames
The MVP pass criteria include pinging a LAN host from the Windows TAP address.
The relay integration suite already proved generic Ethernet forwarding and ARP
traffic, but did not explicitly exercise ICMPv4 echo-shaped frames on the real
client/relay/gateway session path.

Add a session test that sends an IPv4 ICMP echo-request-shaped frame from the
client peer toward a LAN-host MAC and an echo-reply-shaped frame from the
gateway side back to the client MAC. The packets include normal IPv4 and ICMP
checksums, so the local proof maps more directly to the manual ping test while
still staying independent of real Windows TAP and LAN hardware.

Test Plan:
- cargo fmt --check
- cargo test -p lanparty-relay \
  bridges_icmpv4_ping_frames_between_client_and_gateway_sessions -- --nocapture
- cargo test -p lanparty-relay
- cargo test --workspace
- cargo clippy --workspace --all-targets -- -D warnings
- git diff --check

Refs: MVP ping pass condition
2026-05-22 09:43:39 +02:00
..