svn commit: r359803 - stable/11/sys/netinet6

Andrey V. Elsukov ae at FreeBSD.org
Sat Apr 11 09:36:42 UTC 2020


Author: ae
Date: Sat Apr 11 09:36:41 2020
New Revision: 359803
URL: https://svnweb.freebsd.org/changeset/base/359803

Log:
  MFC r359498:
    Ignore ND6 neighbor advertisement received for static link-layer entries.
  
    Previously such NA could override manually created LLE.
  
    Reported by:	Martin Beran <martin at mber cz>

Modified:
  stable/11/sys/netinet6/nd6_nbr.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netinet6/nd6_nbr.c
==============================================================================
--- stable/11/sys/netinet6/nd6_nbr.c	Sat Apr 11 09:35:48 2020	(r359802)
+++ stable/11/sys/netinet6/nd6_nbr.c	Sat Apr 11 09:36:41 2020	(r359803)
@@ -745,6 +745,12 @@ nd6_na_input(struct mbuf *m, int off, int icmp6len)
 		goto freeit;
 	}
 
+	/*
+	 * Do not try to override static entry.
+	 */
+	if (ln->la_flags & LLE_STATIC)
+		goto freeit;
+
 	if (ln->ln_state == ND6_LLINFO_INCOMPLETE) {
 		/*
 		 * If the link-layer has address, and no lladdr option came,


More information about the svn-src-all mailing list