utuntap 0.2.2

A low level Rust library for Tun/Tap devices.
Documentation

Universal TunTap

A low level Rust library for Tun/Tap devices.

Usage

It simply provides more options to open Tun/Tap device files.

use utuntap::tun;


let (mut file, filename) = tun::OpenOptions::new()
    .packet_info(false) // Only available on Linux
    .number(10)
    .open()
    .expect("failed to open device");

Support Platforms

OS Status Comment
Linux Build Status musl is also supported
OpenBSD builds.sr.ht status