From: dlg Date: Sat, 27 Feb 2021 09:20:38 +0000 (+0000) Subject: recover scope from v6 nvgre endpoint addresses for userland to look at. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d79ba69bc0350d130bea563822202358897bfa4a;p=openbsd recover scope from v6 nvgre endpoint addresses for userland to look at. --- 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; }