Crate wgbind

Source
Expand description

Wrapper around the wireguard c library originating from Jason A. Donenfeld Jason@zx2c4.com

Provides an abstraction around the c ffi bindings. This should allow to invoke Wireguard function within safe rust code. Be aware to run these methods the programm requires the priviliges to change your network settings. Most likely root rights! otherwise calling the methods will fail.

The same is true if you attempt to run any tests.

Modules§

wireguard_device

Functions§

add_device
Add a wireguard network interface device
delete_device
Removes a wireguard network interface device
free_device
delete the wg_device allocated by get_device
get_device
Gets a new wg_device
list_device_names
List all available wireguard devices
set_device
Set a new wireguard device - not a network interface