Crates.io | tun-driver |
lib.rs | tun-driver |
version | 0.1.0 |
source | src |
created_at | 2019-08-09 11:36:56.731688 |
updated_at | 2019-08-09 11:36:56.731688 |
description | TUN/TAP interface wrapper |
homepage | |
repository | https://github.com/vorner/tuntap |
max_upload_size | |
id | 155345 |
size | 40,489 |
it's derive https://github.com/vorner/tuntap,
add new tokio default handle.
before:
let mut core = Core::new().unwrap(); let iface = Async::new(iface, &core.handle()).unwrap();
edit after: use new tokio default handle,
let iface = Async::new(iface).unwrap();
TUN/TAP wrapper for Rust.
The TUN/TAP allows implementing a virtual network adapter in userspace. This provides the bindings for Rust.
Create an Iface
object and send
or recv
packets. Making some sense of the
packets is, however, out of scope, you need something else for that.
There's documentation and some examples.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.