From 3793560226b78fe3411906b53ec36e4292160f73 Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Fri, 16 Feb 2001 08:47:13 +0000 Subject: make sure to clear ln_byhint when neighbor state goes to REACHABLE. sync whitespace/comment with kame. --- sys/netinet6/nd6_nbr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/netinet6/nd6_nbr.c b/sys/netinet6/nd6_nbr.c index fdddd70a55a..0e8590b22a9 100644 --- a/sys/netinet6/nd6_nbr.c +++ b/sys/netinet6/nd6_nbr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nd6_nbr.c,v 1.13 2001/02/08 14:51:23 itojun Exp $ */ +/* $OpenBSD: nd6_nbr.c,v 1.14 2001/02/16 08:47:12 itojun Exp $ */ /* $KAME: nd6_nbr.c,v 1.58 2001/02/08 10:57:00 itojun Exp $ */ /* @@ -649,6 +649,7 @@ nd6_na_input(m, off, icmp6len) bcopy(lladdr, LLADDR(sdl), ifp->if_addrlen); if (is_solicited) { ln->ln_state = ND6_LLINFO_REACHABLE; + ln->ln_byhint = 0; if (ln->ln_expire) ln->ln_expire = time.tv_sec + nd_ifinfo[rt->rt_ifp->if_index].reachable; @@ -718,6 +719,7 @@ nd6_na_input(m, off, icmp6len) */ if (is_solicited) { ln->ln_state = ND6_LLINFO_REACHABLE; + ln->ln_byhint = 0; if (ln->ln_expire) { ln->ln_expire = time.tv_sec + nd_ifinfo[ifp->if_index].reachable; -- cgit v1.2.3