git: wg: Add and improve WG_PKT_* macros to help clean up the code
Aaron LI
aly at crater.dragonflybsd.org
Thu Feb 15 00:28:03 PST 2024
commit 8ee7426de2a2b1f9ba0ba236fe9c3321e93e5fe3
Author: Aaron LI <aly at aaronly.me>
Date: Mon Jan 15 22:34:32 2024 +0800
wg: Add and improve WG_PKT_* macros to help clean up the code
- Add WG_PKT_IS_INITIATION, WG_PKT_IS_RESPONSE, WG_PKT_IS_COOKIE,
and WG_PKT_IS_DATA macros.
- Extend the original WG_PKT_DATA_MINLEN macro to be
WG_PKT_ENCRYPTED_LEN(n).
Summary of changes:
sys/net/wg/if_wg.c | 48 +++++++++++++++++++++++++-----------------------
1 file changed, 25 insertions(+), 23 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8ee7426de2a2b1f9ba0ba236fe9c3321e93e5fe3
--
DragonFly BSD source repository
More information about the Commits
mailing list