git: wg: Improve error handling in wg_output()
Aaron LI
aly at crater.dragonflybsd.org
Wed Feb 28 07:53:08 PST 2024
commit 5ffb7caf259b3fae4b71b472705371723ca80504
Author: Aaron LI <aly at aaronly.me>
Date: Tue Feb 20 22:47:40 2024 +0800
wg: Improve error handling in wg_output()
- Don't send ICMP error if the packet looped, avoiding infinite loops.
- Move the packet loop detection upper to optimize the logic a bit.
- Integrate xmit_err() into wg_output() to simplify the error handling.
- Just increase 'oerrors' and don't use 'oqdrops', which doesn't really
make more sense here.
Summary of changes:
sys/net/wg/if_wg.c | 66 +++++++++++++++++++++---------------------------------
1 file changed, 26 insertions(+), 40 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5ffb7caf259b3fae4b71b472705371723ca80504
--
DragonFly BSD source repository
More information about the Commits
mailing list