summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2021-02-27 09:20:38 +0000
committerdlg <dlg@openbsd.org>2021-02-27 09:20:38 +0000
commitd79ba69bc0350d130bea563822202358897bfa4a (patch)
treec9ec0d15f33e639226fb01f056c933c94cb07bc5
parentIt is perfectly fine to POLLIN and POLLOUT at the same time. It may (diff)
downloadwireguard-openbsd-d79ba69bc0350d130bea563822202358897bfa4a.tar.xz
wireguard-openbsd-d79ba69bc0350d130bea563822202358897bfa4a.zip
recover scope from v6 nvgre endpoint addresses for userland to look at.
-rw-r--r--sys/net/if_gre.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c
index 12b4c9376a2..92961320193 100644
--- a/sys/net/if_gre.c
+++ b/sys/net/if_gre.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gre.c,v 1.168 2021/02/26 01:28:51 dlg Exp $ */
+/* $OpenBSD: if_gre.c,v 1.169 2021/02/27 09:20:38 dlg Exp $ */
/* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */
/*
@@ -4329,7 +4329,7 @@ nvgre_eb_port_sa(void *arg, struct sockaddr_storage *ss, void *port)
sin6->sin6_len = sizeof(*sin6);
sin6->sin6_family = AF_INET6;
- sin6->sin6_addr = endpoint->in6;
+ in6_recoverscope(sin6, &endpoint->in6);
break;
}