Add ICMPv6 Destination Unreachable and TUN reader/writer architecture

- New icmp.rs module: builds RFC 4443 compliant ICMPv6 Type 1 Code 0
  responses with proper checksum and packet validation
- TUN reader/writer separation: fd duplication allows independent I/O
  on separate threads
- TunWriter services mpsc queue for multiple future packet sources
- Reader now sends ICMPv6 errors for unroutable packets instead of
  silently dropping them
- 171 tests passing
This commit is contained in:
Johnathan Corgan
2026-01-30 05:25:28 +00:00
parent db8aa5825d
commit 385033fcb7
6 changed files with 513 additions and 13 deletions
Generated
+1
View File
@@ -273,6 +273,7 @@ dependencies = [
"dirs",
"futures",
"hex",
"libc",
"rand",
"rtnetlink",
"secp256k1",