summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-04-27 10:46:18 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-04-27 10:46:18 +0000
commit45326cbdbc3b6976a078d865d88040938bfa7e56 (patch)
treedc3207e17b1ce2dfc8c9195b5224e1284ed72d10 /sys/netinet6
parent3223469454315591583b0d137fcc5b8afd31da99 (diff)
disable NUD for point-to-point devices. KAME PR 245 (temporary workaround)
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/nd6.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c
index 30dac431c0d..43b447cd7ff 100644
--- a/sys/netinet6/nd6.c
+++ b/sys/netinet6/nd6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nd6.c,v 1.12 2000/04/19 07:38:49 itojun Exp $ */
+/* $OpenBSD: nd6.c,v 1.13 2000/04/27 10:46:17 itojun Exp $ */
/* $KAME: nd6.c,v 1.56 2000/04/19 06:17:43 itojun Exp $ */
/*
@@ -169,7 +169,15 @@ nd6_ifattach(ifp)
ND.reachable = ND_COMPUTE_RTIME(ND.basereachable);
ND.retrans = RETRANS_TIMER;
ND.receivedra = 0;
+#if 1
+ /* XXX temporary workaround */
+ if (ifp->if_flags & IFF_POINTOPOINT)
+ ND.flags = 0;
+ else
+ ND.flags = ND6_IFF_PERFORMNUD;
+#else
ND.flags = ND6_IFF_PERFORMNUD;
+#endif
nd6_setmtu(ifp);
#undef ND
}