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:
sumikawa 2000-04-17 20:24:06 +00:00
parent 9ecf56fe49
commit f450d15f13

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;