git: wg: Style cleanups and minor updates to wg_cookie.[ch]

Aaron LI aly at crater.dragonflybsd.org
Thu Feb 8 00:32:30 PST 2024


commit 1ef0d803dc2463a714beb1decdc81c6b80c7c272
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Nov 25 19:38:23 2023 +0800

    wg: Style cleanups and minor updates to wg_cookie.[ch]
    
    - Adjust code style to align with ours.
    - Move inline functions to the file top.
    - Add the 'const' qualifier to function parameters as much as possible.
    - Move 'cookie_checker_validate_macs()' function to group the functions
      better.
    - Zero the input ratelimit struct in ratelimit_init().
    - Fix and adjust the comments a bit.

Summary of changes:
 sys/net/wg/wg_cookie.c | 320 +++++++++++++++++++++++++++----------------------
 sys/net/wg/wg_cookie.h |  23 ++--
 2 files changed, 195 insertions(+), 148 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1ef0d803dc2463a714beb1decdc81c6b80c7c272


-- 
DragonFly BSD source repository


More information about the Commits mailing list