git: wg: Port #37: reimplement wg_mbuf_reset()

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


commit c515cffa1704236746b4195f550d69bd90d5aa77
Author: Aaron LI <aly at aaronly.me>
Date:   Tue Jan 9 09:57:23 2024 +0800

    wg: Port #37: reimplement wg_mbuf_reset()
    
    We define the 'MBUF_CLEARFLAGS' based on 'M_COPYFLAGS' for the mbuf
    flags to be cleared.  Since we don't make use of mbuf tag for loop
    detection, the wg_mbuf_reset() function becomes really simple, so I just
    do mbuf resetting in wg_encrypt()/wg_decrypt() and remove this function.
    
    Referred-to: OpenBSD

Summary of changes:
 sys/net/wg/if_wg.c | 55 +++++++++++++++++++-----------------------------------
 1 file changed, 19 insertions(+), 36 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c515cffa1704236746b4195f550d69bd90d5aa77


-- 
DragonFly BSD source repository


More information about the Commits mailing list