3 releases

Uses old Rust 2015

0.1.2 Aug 9, 2018
0.1.1 Mar 24, 2018
0.1.0 Dec 3, 2017

#474 in Network programming

Download history 424/week @ 2021-07-07 205/week @ 2021-07-14 211/week @ 2021-07-21 209/week @ 2021-07-28 218/week @ 2021-08-04 154/week @ 2021-08-11 299/week @ 2021-08-18 470/week @ 2021-08-25 363/week @ 2021-09-01 430/week @ 2021-09-08 239/week @ 2021-09-15 180/week @ 2021-09-22 179/week @ 2021-09-29 152/week @ 2021-10-06 124/week @ 2021-10-13 117/week @ 2021-10-20

488 downloads per month
Used in 4 crates

Apache-2.0/MIT

18KB
210 lines

TunTap

Travis Build Status

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.

Known issues

  • Tested only on Linux. Probably doesn't work anywhere else, but pull requests adding support for other OSes are welcome.
  • The asynchronous interface is very minimal and probably inefficient. It'll need to be extended to allow more flexible or efficient use.

License

Licensed under either of

at your option.

Contribution

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.

Dependencies

~0–1MB
~16K SLoC