#tun-tap #tun #tap

tidy-tuntap

tidy-tuntap is a Rust wrapper for working with TUN/TAP devices in Linux

4 releases (2 breaking)

0.3.1 Apr 1, 2023
0.3.0 Dec 21, 2022
0.2.0 Sep 2, 2022
0.1.0 Jul 30, 2022

#10 in #tun-tap

26 downloads per month

MIT license

42KB
757 lines

tidy-tuntap is a Rust wrapper for working with TUN/TAP devices in Linux.

Examples

There are examples of using this crate in the examples folder which also act as tests. To run these examples you need to build them and set the cap_net_admin capability of each generated executable. There is a convenience shell script in the root folder of the project called run_examples.sh which you can execute to build and run all the examples. Feel free to inspect the contents of this script and all the examples before trying to running them.

Features

  • Multiqueue support
  • Async support
  • IPv6 support

Dependencies

~2–14MB
~169K SLoC