mirror of
https://github.com/jmcorgan/fips.git
synced 2026-08-09 08:14:42 +00:00
Wire the TUN reader to the session layer for end-to-end IPv6 packet delivery through the mesh. TUN reader forwards FIPS-destined packets (fd::/8) to Node via tokio::sync::mpsc channel. Identity cache maps FipsAddress prefix bytes to NodeAddr + PublicKey for reverse address resolution, populated at peer promotion and session creation. Outbound handler validates IPv6, looks up destination identity, routes through established session or initiates new one with pending packet queue (16/dest, 256 dests max). Queue flushed on session establishment. ICMPv6 Destination Unreachable for unknown destinations. 6 new tests including 3-node forwarded TUN data and pending queue flush. 410 tests pass, clean build.