Files
softlan-vpn/crates/lanparty-relay
ddidderr 9eded8a41e test(relay): cover DHCP-shaped session frames
The MVP pass criteria include the Windows TAP adapter receiving a real LAN DHCP
address. Unit tests covered DHCP filtering policy, but the real client, relay,
and gateway session path did not explicitly carry DHCP-shaped request and reply
traffic.

Add a session test that sends a DHCPv4 discover-shaped broadcast from the client
side to the gateway and a DHCPv4 offer-shaped broadcast from the gateway side
back to the client. The test checks the DHCP UDP ports, DHCP message types, and
broadcast counters in both directions, so it exercises the same L2/L3 shape the
manual TAP DHCP proof depends on without requiring Windows or LAN hardware.

Test Plan:
- cargo fmt --check
- cargo test -p lanparty-relay \
  bridges_dhcpv4_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 DHCP pass condition
2026-05-22 09:50:58 +02:00
..