git: wg: Refactor selftest allowedips.c

Aaron LI aly at crater.dragonflybsd.org
Thu Feb 8 08:49:35 PST 2024


commit 4c074b47b517304248bc217c9070c6a4abb82fb4
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Jan 27 22:59:31 2024 +0800

    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.

Summary of changes:
 sys/net/wg/selftest/allowedips.c | 880 +++++++++++++++++++++++----------------
 1 file changed, 521 insertions(+), 359 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4c074b47b517304248bc217c9070c6a4abb82fb4


-- 
DragonFly BSD source repository


More information about the Commits mailing list