Crates.io | tun-tap |
lib.rs | tun-tap |
version | 0.1.4 |
source | src |
created_at | 2017-12-03 13:41:50.516137 |
updated_at | 2023-08-06 10:48:47.416703 |
description | TUN/TAP interface wrapper |
homepage | |
repository | https://github.com/vorner/tuntap |
max_upload_size | |
id | 41559 |
size | 63,472 |
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.
In order to run the tests correctly, a tun10
device with 10.10.10.1/24
needs
to be created first. You can simply run:
sh tests/setup.sh
To remove it:
sh tests/clean.sh
Sudo permission is required.
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.