Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Oct 2015 19:10:28 +0000 (UTC)
From:      "Alexander V. Chernikov" <melifaro@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r288670 - head/sys/netinet6
Message-ID:  <201510041910.t94JASIo075964@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510041910.t94JASIo075964>