wg: Fix saving of local endpoint in wg_input()
commit3ad83b6c6384167de4f169d07cf10cac98324689
authorAaron LI <aly@aaronly.me>
Fri, 12 Jan 2024 13:55:20 +0000 (12 21:55 +0800)
committerAaron LI <aly@aaronly.me>
Thu, 8 Feb 2024 06:44:47 +0000 (8 14:44 +0800)
tree00da9f25fe1f70cebc11e8705b27132348b0ed89
parent74210119c2c4d4b6fc71fefeae4bfa89a64d52b7
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.
sys/net/wg/if_wg.c