From: itojun Date: Thu, 13 Apr 2000 14:11:17 +0000 (+0000) Subject: even if nd6_nud_hint is called, do not change a neighbor's status X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=804d8827fac602d12b428734bd03462a30122637;p=openbsd even if nd6_nud_hint is called, do not change a neighbor's status unless the old status is probably reachable (i.e. the link-layer address has already been resolved). KAME PR 235. --- diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index c2dc4952c7f..c2def8c65ea 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nd6.c,v 1.7 2000/02/28 11:55:22 itojun Exp $ */ +/* $OpenBSD: nd6.c,v 1.8 2000/04/13 14:11:17 itojun Exp $ */ /* $KAME: nd6.c,v 1.41 2000/02/24 16:34:50 itojun Exp $ */ /* @@ -872,7 +872,7 @@ nd6_nud_hint(rt, dst6) } ln = (struct llinfo_nd6 *)rt->rt_llinfo; - if (ln->ln_state == ND6_LLINFO_INCOMPLETE) + if (ln->ln_state < ND6_LLINFO_REACHABLE) return; ln->ln_state = ND6_LLINFO_REACHABLE;