git: wg: Refactor cookie functions to make cookie_{checker, maker} opaque

Aaron LI aly at crater.dragonflybsd.org
Thu Feb 15 00:28:04 PST 2024


commit 03c3b87ef5fecb0442a207afb902c61313e230f0
Author: Aaron LI <aly at aaronly.me>
Date:   Tue Feb 6 00:13:15 2024 +0800

    wg: Refactor cookie functions to make cookie_{checker,maker} opaque
    
    - Rename cookie_{checker,maker}_init() to cookie_{checker,maker}_alloc(),
      in symmetry with cookie_{checker,maker}_free().
    - Make cookie_{checker,maker} structs opaque, and move them from
      wg_cookie.h to wg_cookie.c.
    - Update if_wg.c and selftest code accordingly.

Summary of changes:
 sys/net/wg/if_wg.c           | 30 +++++++++++++--------------
 sys/net/wg/selftest/cookie.c | 38 +++++++++++++++++------------------
 sys/net/wg/wg_cookie.c       | 48 ++++++++++++++++++++++++++++++++++++++------
 sys/net/wg/wg_cookie.h       | 35 +++++++-------------------------
 4 files changed, 83 insertions(+), 68 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/03c3b87ef5fecb0442a207afb902c61313e230f0


-- 
DragonFly BSD source repository


More information about the Commits mailing list