Expand description
FIPS TUN Interface
Manages the TUN device for sending and receiving IPv6 packets. The TUN interface presents FIPS addresses to the local system, allowing standard socket applications to communicate over the mesh.
Platform-specific implementations:
- Linux: Uses the
tuncrate withrtnetlinkfor interface configuration - macOS: Uses the
tuncrate withifconfig/routefor interface configuration - Windows: Uses the
wintuncrate for TUN device support
Structs§
Enums§
Functions§
- log_
ipv6_ packet - Log basic information about an IPv6 packet at TRACE level.
- run_
tun_ reader - TUN packet reader loop (Linux).
- shutdown_
tun_ interface - Shutdown and delete a TUN interface by name.
Type Aliases§
- Path
MtuLookup - Read-only handle to the per-destination path MTU map. Populated by
the discovery handler on
LookupResponse; read by the TUN reader (outbound clamp) and writer (inbound clamp) at TCP MSS clamp time. Keyed byFipsAddress(16 bytes, the IPv6 form of a fips peer address). - TunOutbound
Rx - Channel receiver for outbound packets (consumed by Node’s RX loop).
- TunOutbound
Tx - Channel sender for outbound packets from TUN reader to Node.
- TunTx
- Channel sender for packets to be written to TUN.