Universal TunTap
This library aims to provide unified APIs to open Tun/Tap devices on different OSes. It is runtime-agnostic so that you can create your cross-platform wrappers for Tokio, async-std and so on.
Usage
It simply provides more options to open Tun/Tap device files.
use tun;
let = new
.packet_info // Only available on Linux
.number
.open
.expect;
Support Platforms
| OS | Status | Comment |
|---|---|---|
| Linux | musl is also supported | |
| OpenBSD |