git: wg: Fix saving of local endpoint in wg_input()
Aaron LI
aly at crater.dragonflybsd.org
Thu Feb 8 00:32:34 PST 2024
commit 3ad83b6c6384167de4f169d07cf10cac98324689
Author: Aaron LI <aly at aaronly.me>
Date: Fri Jan 12 21:55:20 2024 +0800
wg: Fix saving of local endpoint in wg_input()
The so_pru_soreceive() can only obtain the remote address and port, so
there is no local address to save in wg_input(). Remove the wrong code
of saving the local endpoint from wg_input().
In addition, rename 'sa' to 'from' in wg_upcall() to make this more
clear.
Summary of changes:
sys/net/wg/if_wg.c | 32 ++++++++++++--------------------
1 file changed, 12 insertions(+), 20 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3ad83b6c6384167de4f169d07cf10cac98324689
--
DragonFly BSD source repository
More information about the Commits
mailing list