aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-03-23 12:50:04 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2021-03-23 12:55:03 -0600
commit3d79697665d6ce253e6915d92ab41d1e6867b699 (patch)
treed4728bcd978eeb2da7aba2d3c8bfb21baea0198e
parentif_wg: drop pointtopoint flag (diff)
downloadwireguard-freebsd-3d79697665d6ce253e6915d92ab41d1e6867b699.tar.xz
wireguard-freebsd-3d79697665d6ce253e6915d92ab41d1e6867b699.zip
if_wg: disable llv6
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--src/if_wg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/if_wg.c b/src/if_wg.c
index 35e59c2..deedff7 100644
--- a/src/if_wg.c
+++ b/src/if_wg.c
@@ -66,6 +66,7 @@ __FBSDID("$FreeBSD$");
#include <netinet/in_pcb.h>
#include <netinet6/in6_pcb.h>
#include <netinet/udp_var.h>
+#include <netinet6/nd6.h>
#include <machine/in_cksum.h>
@@ -3300,6 +3301,10 @@ wg_clone_create(struct if_clone *ifc, int unit, caddr_t params)
if_attach(ifp);
bpfattach(ifp, DLT_NULL, sizeof(uint32_t));
+#ifdef INET6
+ ND_IFINFO(ifp)->flags &= ~ND6_IFF_AUTO_LINKLOCAL;
+ ND_IFINFO(ifp)->flags |= ND6_IFF_NO_DAD;
+#endif
sx_xlock(&wg_sx);
LIST_INSERT_HEAD(&wg_list, sc, sc_entry);