diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2020-03-16 12:41:59 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2020-03-16 12:41:59 +0100 |
commit | f2ee976d065543a42a498370fd094967f3646cf9 (patch) | |
tree | ac545db1272e47d30b1da3623fc9ec23198a44b7 /src/wireguard/router/anti_replay.rs | |
parent | Additional in-order queue test for router (diff) | |
download | wireguard-rs-f2ee976d065543a42a498370fd094967f3646cf9.tar.xz wireguard-rs-f2ee976d065543a42a498370fd094967f3646cf9.zip |
Upgraded treebitmap dependencytests
Diffstat (limited to '')
-rw-r--r-- | src/wireguard/router/anti_replay.rs | 2 |
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; |