From 6ba40f17cb484c0b9b76caf926ef24539892d5a6 Mon Sep 17 00:00:00 2001 From: Mathias Hall-Andersen Date: Mon, 4 Nov 2019 13:19:27 +0100 Subject: Work on Up/Down operation on WireGuard device --- src/wireguard/router/device.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/wireguard/router/device.rs') diff --git a/src/wireguard/router/device.rs b/src/wireguard/router/device.rs index 7c3b0a1..a5028e1 100644 --- a/src/wireguard/router/device.rs +++ b/src/wireguard/router/device.rs @@ -27,6 +27,8 @@ use super::route::get_route; use super::super::{bind, tun, Endpoint, KeyPair}; pub struct DeviceInner> { + pub enabled: AtomicBool, + // inbound writer (TUN) pub inbound: T, @@ -91,6 +93,7 @@ impl> Device> Device