# HG changeset patch # Parent e33808922654ce4bd942c746e21afb60e1b2e08e Generate lle_event in the IPv6 neighbor discovery code too. diff -r e33808922654 sys/netinet6/nd6.c --- a/sys/netinet6/nd6.c Tue Jan 15 12:07:40 2013 -0800 +++ b/sys/netinet6/nd6.c Tue Jan 15 12:20:24 2013 -0800 @@ -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, stru */ bcopy(lladdr, &ln->ll_addr, ifp->if_addrlen); ln->la_flags |= LLE_VALID; + EVENTHANDLER_INVOKE(lle_event, ln, LLENTRY_RESOLVED); } if (!is_newentry) { diff -r e33808922654 sys/netinet6/nd6_nbr.c --- a/sys/netinet6/nd6_nbr.c Tue Jan 15 12:07:40 2013 -0800 +++ b/sys/netinet6/nd6_nbr.c Tue Jan 15 12:20:24 2013 -0800 @@ -762,6 +762,7 @@ nd6_na_input(struct mbuf *m, int off, in */ 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, in if (lladdr != NULL) { bcopy(lladdr, &ln->ll_addr, ifp->if_addrlen); ln->la_flags |= LLE_VALID; + EVENTHANDLER_INVOKE(lle_event, ln, + LLENTRY_RESOLVED); } /*