Do not skip entries without LLE_VALID flag.

This one fixes showing incomplete entries in ndp -an.

MFC after:	2 weeks
This commit is contained in:
melifaro 2015-09-05 06:24:00 +00:00
parent 3e1524c83e
commit d013cff635

View File

@ -2313,8 +2313,8 @@ in6_lltable_dump_entry(struct lltable *llt, struct llentry *lle,
int error;
bzero(&ndpc, sizeof(ndpc));
/* skip invalid entries */
if ((lle->la_flags & (LLE_DELETED|LLE_VALID)) != LLE_VALID)
/* skip deleted entries */
if ((lle->la_flags & LLE_DELETED) == LLE_DELETED)
return (0);
/* Skip if jailed and not a valid IP of the prison. */
lltable_fill_sa_entry(lle,