tap-windows

Crates.iotap-windows
lib.rstap-windows
version0.1.2
sourcesrc
created_at2020-05-11 18:04:53.388043
updated_at2020-05-11 18:22:51.922414
descriptiontap-windows driver interface.
homepage
repositoryhttps://github.com/Tazdevil971/tap-windows
max_upload_size
id240207
size35,293
Davide (Tazdevil971)

documentation

README

tap-windows

Library to interface with the tap-windows driver created by OpenVPN to manage tap interfaces.

Install

Add this to your [dependencies] in Cargo.toml

tap-windows = "0.1"

Alternatively if you have cargo-edit installed you can install it by running cargo add tap-windows.

Usage

Check the documentation for Device for a simple usage example.

Features

Currently this implementation lacks many features. Here is a list of currently implemented (and unimplemented but planned) features:

  • Creating/opening/deleting interfaces.
  • Reading and writing from an interface.
  • Read driver configuration (mtu, version, mac).
  • Write interface ip configuration (set interface ip/mask).
  • Read interface ip configuration (get interface ip/mask).
  • Tun emulation mode.
  • Async read/write.
  • Drop netsh for interface configuration (maybe switch to wmi?).
Commit count: 7

cargo fmt