Crates.io | macos-tun-tap |
lib.rs | macos-tun-tap |
version | 0.1.2 |
source | src |
created_at | 2021-09-29 14:28:40.542466 |
updated_at | 2021-09-29 14:28:40.542466 |
description | TUN/TAP interface wrapper |
homepage | |
repository | https://github.com/attriaayush/tuntap |
max_upload_size | |
id | 458117 |
size | 65,401 |
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.