Expand description
TUN/TAP provides packet reception and transmission for user space programs. It can be seen as a simple Point-to-Point or Ethernet device, which, instead of receiving packets from physical media, receives them from user space program and instead of sending packets via physical media writes them to the user space program.
This crate provides three different kinds of TUN/TAP devices:
NOTE: There is a device type corrospoding to each TUN/TAP type. You can’t construct these devices since they’re only there to contain the shared code between TUN/TAP devices.
Modules§
Structs§
- Async
Device tokio
- Represents a non-blocking TUN/TAP device.
- Async
Tap tokio
- Represents a non-blocking TAP device.
- Async
Tun tokio
- Represents a non-blocking TUN device.
- Device
- Represents a blocking TUN/TAP device.
- MQDevice
- Represents a multiqueue TUN/TAP device.
- MQTap
- Represents a mutliqueue TAP device.
- MQTun
- Represents a multiqueue TUN device.
- Tap
- Represents a blocking TAP device.
- Tun
- Represents a blocking TUN device.
Enums§
- Mode
- Represents the mode of device.