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:
parent
be68b4b323
commit
cfad769689
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user