summaryrefslogtreecommitdiffstats
path: root/src/wireguard/router/anti_replay.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2020-03-16 12:41:59 +0100
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2020-03-16 12:41:59 +0100
commitf2ee976d065543a42a498370fd094967f3646cf9 (patch)
treeac545db1272e47d30b1da3623fc9ec23198a44b7 /src/wireguard/router/anti_replay.rs
parentAdditional in-order queue test for router (diff)
downloadwireguard-rs-tests.tar.xz
wireguard-rs-tests.zip
Upgraded treebitmap dependencytests
Diffstat (limited to 'src/wireguard/router/anti_replay.rs')
-rw-r--r--src/wireguard/router/anti_replay.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wireguard/router/anti_replay.rs b/src/wireguard/router/anti_replay.rs
index b0838bd..b47dea9 100644
--- a/src/wireguard/router/anti_replay.rs
+++ b/src/wireguard/router/anti_replay.rs
@@ -18,7 +18,7 @@ const REDUNDANT_BIT_SHIFTS: usize = 5;
const SIZE_OF_WORD: usize = mem::size_of::<Word>() * 8;
const BITMAP_BITLEN: usize = 2048;
-const BITMAP_LEN: usize = (BITMAP_BITLEN / SIZE_OF_WORD);
+const BITMAP_LEN: usize = BITMAP_BITLEN / SIZE_OF_WORD;
const BITMAP_INDEX_MASK: u64 = BITMAP_LEN as u64 - 1;
const BITMAP_LOC_MASK: u64 = (SIZE_OF_WORD - 1) as u64;
const WINDOW_SIZE: u64 = (BITMAP_BITLEN - SIZE_OF_WORD) as u64;