diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2020-03-16 12:44:48 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2020-03-16 12:44:48 +0100 |
commit | c4d2ad7a78471874d3baf0da7a6118a72fdff49c (patch) | |
tree | e016118ce9d69a4abb5c5e826a50277e858b4203 /src/wireguard/router/anti_replay.rs | |
parent | Added the netns test (diff) | |
parent | Upgraded treebitmap dependency (diff) | |
download | wireguard-rs-c4d2ad7a78471874d3baf0da7a6118a72fdff49c.tar.xz wireguard-rs-c4d2ad7a78471874d3baf0da7a6118a72fdff49c.zip |
Merge branch 'tests'
Diffstat (limited to 'src/wireguard/router/anti_replay.rs')
-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; |