summaryrefslogtreecommitdiffstats
path: root/src/wireguard/router/peer.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-12-16 16:53:23 +0100
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-12-16 16:53:23 +0100
commitf8f404c8717fb23fec922f35163937ab01962396 (patch)
treedbeca8c0e0469859e6fd113fafeac6d1fa1f5059 /src/wireguard/router/peer.rs
parentClean dead code (diff)
downloadwireguard-rs-f8f404c8717fb23fec922f35163937ab01962396.tar.xz
wireguard-rs-f8f404c8717fb23fec922f35163937ab01962396.zip
Constant renamed to be consistent with kernel WG
Diffstat (limited to '')
-rw-r--r--src/wireguard/router/peer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wireguard/router/peer.rs b/src/wireguard/router/peer.rs
index ebc0aac..23a3e62 100644
--- a/src/wireguard/router/peer.rs
+++ b/src/wireguard/router/peer.rs
@@ -39,7 +39,7 @@ pub struct PeerInner<E: Endpoint, C: Callbacks, T: tun::Writer, B: udp::Writer<E
pub opaque: C::Opaque,
pub outbound: InorderQueue<Peer<E, C, T, B>, Outbound>,
pub inbound: InorderQueue<Peer<E, C, T, B>, Inbound<E, C, T, B>>,
- pub staged_packets: Mutex<ArrayDeque<[Vec<u8>; MAX_STAGED_PACKETS], Wrapping>>,
+ pub staged_packets: Mutex<ArrayDeque<[Vec<u8>; MAX_QUEUED_PACKETS], Wrapping>>,
pub keys: Mutex<KeyWheel>,
pub ekey: Mutex<Option<EncryptionState>>,
pub endpoint: Mutex<Option<E>>,