From c627549d2ccb77e6325ac21d7cc33392049c3098 Mon Sep 17 00:00:00 2001 From: kn Date: Thu, 27 Aug 2020 21:27:18 +0000 Subject: Use p2p_rtrequest() Although technically a point-to-multipoint interface, point-to-point semantics apply/fit when installing local routes, e.g. configuring IPv6 addresses on it. This is to fix SIOCGNBRINFO_IN6 and thus ndp(8). Report and diff from Matt Dunwoodie , thanks! OK tobhe --- sys/net/if_wg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/net/if_wg.c b/sys/net/if_wg.c index e5a1071ccf1..83d5c18c7d3 100644 --- a/sys/net/if_wg.c +++ b/sys/net/if_wg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wg.c,v 1.12 2020/08/21 22:59:27 kn Exp $ */ +/* $OpenBSD: if_wg.c,v 1.13 2020/08/27 21:27:17 kn Exp $ */ /* * Copyright (C) 2015-2020 Jason A. Donenfeld . All Rights Reserved. @@ -2655,6 +2655,7 @@ wg_clone_create(struct if_clone *ifc, int unit) ifp->if_output = wg_output; ifp->if_type = IFT_WIREGUARD; + ifp->if_rtrequest = p2p_rtrequest; if_attach(ifp); if_alloc_sadl(ifp); -- cgit v1.2.3