aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/uipc_syscalls.c
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2021-03-16 02:38:23 +0000
committerKyle Evans <kevans@FreeBSD.org>2021-03-17 14:14:48 +0000
commitf187d6dfbf633665ba6740fe22742aec60ce02a2 (patch)
treed875cb5c567a9c37fc07bdf0453071210ee8a398 /sys/kern/uipc_syscalls.c
parent5bffdafd6c5f2a8279a57172ab760ea66ed3d7d5 (diff)
downloadsrc-f187d6dfbf633665ba6740fe22742aec60ce02a2.tar.gz
src-f187d6dfbf633665ba6740fe22742aec60ce02a2.zip
base: remove if_wg(4) and associated utilities, manpage
After length decisions, we've decided that the if_wg(4) driver and related work is not yet ready to live in the tree. This driver has larger security implications than many, and thus will be held to more scrutiny than other drivers. Please also see the related message sent to the freebsd-hackers@ and freebsd-arch@ lists by Kyle Evans <kevans@FreeBSD.org> on 2021/03/16, with the subject line "Removing WireGuard Support From Base" for additional context.
Diffstat (limited to 'sys/kern/uipc_syscalls.c')
-rw-r--r--sys/kern/uipc_syscalls.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c
index b9c2630561cb..23fae343924a 100644
--- a/sys/kern/uipc_syscalls.c
+++ b/sys/kern/uipc_syscalls.c
@@ -1386,7 +1386,9 @@ kern_getsockname(struct thread *td, int fd, struct sockaddr **sa,
return (error);
so = fp->f_data;
*sa = NULL;
- error = sogetsockaddr(so, sa);
+ CURVNET_SET(so->so_vnet);
+ error = (*so->so_proto->pr_usrreqs->pru_sockaddr)(so, sa);
+ CURVNET_RESTORE();
if (error != 0)
goto bad;
if (*sa == NULL)