async-tun 0.3.0

Asynchronous allocation of TUN/TAP devices
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::net::Ipv4Addr;

/// Represents parameters for creating a new Tun/Tap device on Linux.
#[cfg(target_os = "linux")]
pub struct Params {
    pub name: Option<String>,
    pub flags: i16,
    pub persist: bool,
    pub up: bool,
    pub mtu: Option<i32>,
    pub owner: Option<i32>,
    pub group: Option<i32>,
    pub address: Option<Ipv4Addr>,
    pub destination: Option<Ipv4Addr>,
}