git: wg: Fix bug in calculate_padding()
Aaron LI
aly at crater.dragonflybsd.org
Thu Feb 8 00:32:35 PST 2024
commit 05c2812fa3ee03edaba9ac2f326ed89dd28b5275
Author: Aaron LI <aly at aaronly.me>
Date: Mon Jan 15 21:48:18 2024 +0800
wg: Fix bug in calculate_padding()
The calculation for 'pkt->p_mtu == 0' case was wrong, but it didn't
cause actual harm because currently only keepalive packets have
'p_mtu = 0' but also have a zero length.
Fix the calculation and add a comment about the keepalive packets.
Summary of changes:
sys/net/wg/if_wg.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/05c2812fa3ee03edaba9ac2f326ed89dd28b5275
--
DragonFly BSD source repository
More information about the Commits
mailing list