Generate lle_event in the IPv6 neighbor discovery code too.
Reviewed by: bz@
This commit is contained in:
parent
4364ec0852
commit
63a97a4040
@ -509,6 +509,7 @@ nd6_llinfo_timer(void *arg)
|
||||
ln->la_hold = m0;
|
||||
clear_llinfo_pqueue(ln);
|
||||
}
|
||||
EVENTHANDLER_INVOKE(lle_event, ln, LLENTRY_TIMEDOUT);
|
||||
(void)nd6_free(ln, 0);
|
||||
ln = NULL;
|
||||
if (m != NULL)
|
||||
@ -526,6 +527,7 @@ nd6_llinfo_timer(void *arg)
|
||||
case ND6_LLINFO_STALE:
|
||||
/* Garbage Collection(RFC 2461 5.3) */
|
||||
if (!ND6_LLINFO_PERMANENT(ln)) {
|
||||
EVENTHANDLER_INVOKE(lle_event, ln, LLENTRY_EXPIRED);
|
||||
(void)nd6_free(ln, 1);
|
||||
ln = NULL;
|
||||
}
|
||||
@ -553,6 +555,7 @@ nd6_llinfo_timer(void *arg)
|
||||
nd6_ns_output(ifp, dst, dst, ln, 0);
|
||||
LLE_WLOCK(ln);
|
||||
} else {
|
||||
EVENTHANDLER_INVOKE(lle_event, ln, LLENTRY_EXPIRED);
|
||||
(void)nd6_free(ln, 0);
|
||||
ln = NULL;
|
||||
}
|
||||
@ -1601,6 +1604,7 @@ nd6_cache_lladdr(struct ifnet *ifp, struct in6_addr *from, char *lladdr,
|
||||
*/
|
||||
bcopy(lladdr, &ln->ll_addr, ifp->if_addrlen);
|
||||
ln->la_flags |= LLE_VALID;
|
||||
EVENTHANDLER_INVOKE(lle_event, ln, LLENTRY_RESOLVED);
|
||||
}
|
||||
|
||||
if (!is_newentry) {
|
||||
|
@ -762,6 +762,7 @@ nd6_na_input(struct mbuf *m, int off, int icmp6len)
|
||||
*/
|
||||
bcopy(lladdr, &ln->ll_addr, ifp->if_addrlen);
|
||||
ln->la_flags |= LLE_VALID;
|
||||
EVENTHANDLER_INVOKE(lle_event, ln, LLENTRY_RESOLVED);
|
||||
if (is_solicited) {
|
||||
ln->ln_state = ND6_LLINFO_REACHABLE;
|
||||
ln->ln_byhint = 0;
|
||||
@ -837,6 +838,8 @@ nd6_na_input(struct mbuf *m, int off, int icmp6len)
|
||||
if (lladdr != NULL) {
|
||||
bcopy(lladdr, &ln->ll_addr, ifp->if_addrlen);
|
||||
ln->la_flags |= LLE_VALID;
|
||||
EVENTHANDLER_INVOKE(lle_event, ln,
|
||||
LLENTRY_RESOLVED);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user