even if nd6_nud_hint is called, do not change a neighbor's status
authoritojun <itojun@openbsd.org>
Thu, 13 Apr 2000 14:11:17 +0000 (14:11 +0000)
committeritojun <itojun@openbsd.org>
Thu, 13 Apr 2000 14:11:17 +0000 (14:11 +0000)
unless the old status is probably reachable (i.e. the link-layer address
has already been resolved).
KAME PR 235.

sys/netinet6/nd6.c

index c2dc495..c2def8c 100644 (file)
@@ -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;