From c58b5ed8477c3a751a1720dec129eaeb29df3621 Mon Sep 17 00:00:00 2001 From: itojun Date: Thu, 27 Apr 2000 10:46:17 +0000 Subject: [PATCH] disable NUD for point-to-point devices. KAME PR 245 (temporary workaround) --- sys/netinet6/nd6.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 } -- 2.20.1