summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-02-16 08:47:13 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-02-16 08:47:13 +0000
commit3793560226b78fe3411906b53ec36e4292160f73 (patch)
tree7d2da7e5299d1ebaa79ffeaea54254937fda4fb8 /sys
parentd1b231021b924977ea6cd98be4022502e94fafd4 (diff)
make sure to clear ln_byhint when neighbor state goes to REACHABLE.
sync whitespace/comment with kame.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet6/nd6_nbr.c4
1 files changed, 3 insertions, 1 deletions
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;