History log of /dragonfly/sys/net/wg/selftest/allowedips.c (Results 1 – 4 of 4)
Revision Date Author Comments
# 350efd1c 03-Feb-2024 Aaron LI <aly@aaronly.me>

wg: Flush v4 routes for v6 randomized test to reduce the test time

The validation method uses a simple list to store all the routes in a
sorted way so that it can be looked up and verify the lookup

wg: Flush v4 routes for v6 randomized test to reduce the test time

The validation method uses a simple list to store all the routes in a
sorted way so that it can be looked up and verify the lookup results
of the radix tree. The list method can be really slow when there are
many routes, so the randomized test can take ~80 minutes on my test box.
Separate the v4 and v6 tests to significantly reduce the test time (e.g.,
from ~80 minutes to ~15 minutes).

show more ...


# 4c074b47 27-Jan-2024 Aaron LI <aly@aaronly.me>

wg: Refactor selftest allowedips.c

- Refactor multiple functions and macros to make the implementation read
better.
- Fix some memory free issues upon errors; e.g., kfree() panics if the
given p

wg: Refactor selftest allowedips.c

- Refactor multiple functions and macros to make the implementation read
better.
- Fix some memory free issues upon errors; e.g., kfree() panics if the
given pointer is NULL.
- Add progress reports for the randomized test as it can take really
long time (e.g., ~80 minutes on my test box).
- Various improvements and style cleanups.

show more ...


# cf257a5c 26-Jan-2024 Aaron LI <aly@aaronly.me>

wg: Port selftest allowedips.c


# 82c705f0 23-Jan-2024 Aaron LI <aly@aaronly.me>

wg: Import selftest code from wireguard-freebsd

URL: https://git.zx2c4.com/wireguard-freebsd/
Files:
- src/selftest/allowedips.c
- src/selftest/cookie.c
- src/selftest/counter.c