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).

Obtained from:	KAME Project
This commit is contained in:
Munechika SUMIKAWA 2000-04-17 20:24:06 +00:00
parent 539aabcb54
commit ad8d5711fb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59333

View File

@ -730,7 +730,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;