WIP: TUN IO worker
Also removed the type parameters from the handshake device.
This commit is contained in:
@@ -121,7 +121,6 @@ fn get_route<C: Callbacks, T: Tun, B: Bind>(
|
||||
}
|
||||
|
||||
impl<C: Callbacks, T: Tun, B: Bind> Device<C, T, B> {
|
||||
|
||||
pub fn new(num_workers: usize, tun: T, bind: B) -> Device<C, T, B> {
|
||||
// allocate shared device state
|
||||
let mut inner = DeviceInner {
|
||||
@@ -149,6 +148,10 @@ impl<C: Callbacks, T: Tun, B: Bind> Device<C, T, B> {
|
||||
}
|
||||
}
|
||||
|
||||
/// A new secret key has been set for the device.
|
||||
/// According to WireGuard semantics, this should cause all "sending" keys to be discarded.
|
||||
pub fn new_sk(&self) {}
|
||||
|
||||
/// Adds a new peer to the device
|
||||
///
|
||||
/// # Returns
|
||||
|
||||
Reference in New Issue
Block a user