Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Apr 2020 09:36:42 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r359803 - stable/11/sys/netinet6
Message-ID:  <202004110936.03B9agdR041256@repo.freebsd.org>

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



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