1
0
mirror of https://git.zx2c4.com/wireguard-nt synced 2024-09-22 06:11:35 +00:00
wireguard-nt/driver/selftest
Jason A. Donenfeld cbf2764508 driver: allowedips: expand maximum node depth
In the allowedips self-test, nodes are inserted into the tree, but it
generated an even amount of nodes, but for checking maximum node depth,
there is of course the root node, which makes the total number
necessarily odd. With two few nodes added, it never triggered the
maximum depth check like it should have. So, add 129 nodes instead of
128 nodes, and do so with a more straightforward scheme, starting with
all the bits set, and shifting over one each time.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-12-11 15:08:55 +00:00
..
allowedips.c driver: allowedips: expand maximum node depth 2023-12-11 15:08:55 +00:00
chacha20poly1305.c Introduce WireGuardNT 2021-08-02 20:36:36 +02:00
counter.c Introduce WireGuardNT 2021-08-02 20:36:36 +02:00
ratelimiter.c driver: memory: move NBL pools to global scope 2021-08-04 19:47:33 +02:00