svn commit: r288670 - head/sys/netinet6
Alexander V. Chernikov
melifaro at FreeBSD.org
Sun Oct 4 19:10:28 UTC 2015
Author: melifaro
Date: Sun Oct 4 19:10:27 2015
New Revision: 288670
URL: https://svnweb.freebsd.org/changeset/base/288670
Log:
Invoke lle_event for new entry iff it has lladdr set.
Modified:
head/sys/netinet6/nd6.c
Modified: head/sys/netinet6/nd6.c
==============================================================================
--- head/sys/netinet6/nd6.c Sun Oct 4 18:54:02 2015 (r288669)
+++ head/sys/netinet6/nd6.c Sun Oct 4 19:10:27 2015 (r288670)
@@ -1750,10 +1750,12 @@ nd6_cache_lladdr(struct ifnet *ifp, stru
lltable_link_entry(LLTABLE6(ifp), ln);
IF_AFDATA_WUNLOCK(ifp);
if (ln_tmp == NULL) {
- /* No existing lle, mark as new entry */
+ /* No existing lle, mark as new entry (6,7) */
is_newentry = 1;
nd6_llinfo_setstate(ln, ND6_LLINFO_STALE);
- EVENTHANDLER_INVOKE(lle_event, ln, LLENTRY_RESOLVED);
+ if (lladdr != NULL) /* (7) */
+ EVENTHANDLER_INVOKE(lle_event, ln,
+ LLENTRY_RESOLVED);
} else {
lltable_free_entry(LLTABLE6(ifp), ln);
ln = ln_tmp;
More information about the svn-src-all
mailing list