diff options
author | kn <kn@cvs.openbsd.org> | 2020-08-27 21:27:18 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2020-08-27 21:27:18 +0000 |
commit | c627549d2ccb77e6325ac21d7cc33392049c3098 (patch) | |
tree | a921bf0cb724bcd5d06721e43cef32697f362820 /sys | |
parent | abdefa004bed5dd6b7fa9abc48ceca5656286f66 (diff) |
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 <ncon at noconroy dot net>, thanks!
OK tobhe
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_wg.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <Jason@zx2c4.com>. 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); |