Expand description
L3 (TUN) and L2 (TAP) tunnel endpoints behind one trait. Real device I/O lands in M4; this milestone fixes the public surface.
Structs§
- TunReader
- The read half of a split
TunTap. - TunTap
- A TUN (L3) or TAP (L2) tunnel device.
- TunWriter
- The write half of a split
TunTap.
Enums§
- Device
Error - Errors creating or configuring a tunnel device.
- Device
Kind - Whether a device operates at L3 (IP) or L2 (Ethernet).
Constants§
- TUNSETVNETHDR
- Alias for
TUNSETVNETHDRSZ. - TUNSETVNETHDRSZ
- VNET_
HDR_ LEN - Length (bytes) of the
virtio_net_hdrprefix on every TUN read/write whenTunTap::vnet_hdr_lenisSome. Kept as its own constant (rather than depending onyip-io) soyip-devicehas no dependency onyip-io.
Traits§
- Device
- A tunnel endpoint that yields and accepts inner frames. Implemented in M4.