aboutsummaryrefslogtreecommitdiffstats
path: root/src/router/peer.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-09-04 19:22:47 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-09-04 19:22:47 +0200
commit310be99fa671e98b1e3e84deeb4d1345abedabf6 (patch)
tree874224914200cb5a5e349e53d1c167b223b2d561 /src/router/peer.rs
parentSimply passing of JobBuffer ownership (diff)
downloadwireguard-rs-310be99fa671e98b1e3e84deeb4d1345abedabf6.tar.xz
wireguard-rs-310be99fa671e98b1e3e84deeb4d1345abedabf6.zip
Expanded outbound test
Diffstat (limited to '')
-rw-r--r--src/router/peer.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/router/peer.rs b/src/router/peer.rs
index a31dfcf..e9f62d5 100644
--- a/src/router/peer.rs
+++ b/src/router/peer.rs
@@ -22,17 +22,15 @@ use super::device::DeviceInner;
use super::device::EncryptionState;
use super::messages::TransportHeader;
-use futures::sync::oneshot;
use futures::*;
use super::workers::Operation;
use super::workers::{worker_inbound, worker_outbound};
use super::workers::{JobBuffer, JobInbound, JobOutbound, JobParallel};
+use super::constants::MAX_STAGED_PACKETS;
use super::types::Callbacks;
-const MAX_STAGED_PACKETS: usize = 128;
-
pub struct KeyWheel {
next: Option<Arc<KeyPair>>, // next key state (unconfirmed)
current: Option<Arc<KeyPair>>, // current key state (used for encryption)