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>
Reviewed by:	melifaro
MFC after:	10 days
This commit is contained in:
Andrey V. Elsukov 2020-04-01 02:13:01 +00:00
parent be68b4b323
commit cfad769689
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359498

View File

@ -754,6 +754,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,