git: wg: Some code cleanups, minor improvements and comment updates
Aaron LI
aly at crater.dragonflybsd.org
Thu Feb 15 00:28:05 PST 2024
commit 015567cbb477e043923e80386070b2ef918bdf25
Author: Aaron LI <aly at aaronly.me>
Date: Wed Feb 7 22:25:49 2024 +0800
wg: Some code cleanups, minor improvements and comment updates
- Clean up some code logics to make the conditional flow and error
handling more smooth.
- Add and update various comments to make the code more understandable.
A large fraction of the comments are derived from the WireGuard code
in Linux/OpenBSD, and from commit messages.
Summary of changes:
sys/net/wg/if_wg.c | 203 ++++++++++++++++++++++++++++++++++----------------
sys/net/wg/wg_noise.c | 14 +++-
2 files changed, 149 insertions(+), 68 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/015567cbb477e043923e80386070b2ef918bdf25
--
DragonFly BSD source repository
More information about the Commits
mailing list