Merge pull request #18112 from FRRouting/mergify/bp/dev/10.3/pr-18078

nhrpd: fix dont consider incomplete L2 entry (backport #18078)
This commit is contained in:
Donald Sharp 2025-02-12 08:17:12 -05:00 committed by GitHub
commit 57c152832b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -184,7 +184,7 @@ int nhrp_neighbor_operation(ZAPI_CALLBACK_ARGS)
: (cmd == ZEBRA_NEIGH_ADDED) ? "new-neigh"
: "del-neigh",
&addr, ifp->name, &lladdr, ndm_state, c->used, c->cur.type);
if (cmd == ZEBRA_NEIGH_GET) {
if (cmd == ZEBRA_NEIGH_GET && ndm_state != ZEBRA_NEIGH_STATE_INCOMPLETE) {
if (c->cur.type >= NHRP_CACHE_CACHED) {
nhrp_cache_set_used(c, 1);
debugf(NHRP_DEBUG_KERNEL,