diff options
author | 2001-02-16 08:47:12 +0000 | |
---|---|---|
committer | 2001-02-16 08:47:12 +0000 | |
commit | 8d0bbe0e644978e48b912f78af3d7f8f6f63ce87 (patch) | |
tree | e2a1810d373ba5ad28bb4f72d8065af22a525dbe | |
parent | Bring apecs closer to current netbsd work (updated copyrights, plus (diff) | |
download | wireguard-openbsd-8d0bbe0e644978e48b912f78af3d7f8f6f63ce87.tar.xz wireguard-openbsd-8d0bbe0e644978e48b912f78af3d7f8f6f63ce87.zip |
make sure to clear ln_byhint when neighbor state goes to REACHABLE.
sync whitespace/comment with kame.
-rw-r--r-- | sys/netinet6/nd6_nbr.c | 4 |
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; |