From 18f9d539cc48e71602cc983f3ad4ad179391f6bc Mon Sep 17 00:00:00 2001 From: itojun Date: Thu, 13 Apr 2000 14:11:06 +0000 Subject: [PATCH] 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. --- sys/netinet6/nd6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index 6eba315547b2..c9fbf72efdba 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -1,4 +1,4 @@ -/* $NetBSD: nd6.c,v 1.21 2000/04/12 10:36:45 itojun Exp $ */ +/* $NetBSD: nd6.c,v 1.22 2000/04/13 14:11:06 itojun Exp $ */ /* $KAME: nd6.c,v 1.41 2000/02/24 16:34:50 itojun Exp $ */ /* @@ -881,7 +881,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;