Merge pull request #18078 from pguibert6WIND/nhrp_incomplete_msg

nhrpd: fix dont consider incomplete L2 entry
This commit is contained in:
Jafar Al-Gharaibeh 2025-02-11 20:57:09 -06:00 committed by GitHub
commit c821a7a207
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" : (cmd == ZEBRA_NEIGH_ADDED) ? "new-neigh"
: "del-neigh", : "del-neigh",
&addr, ifp->name, &lladdr, ndm_state, c->used, c->cur.type); &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) { if (c->cur.type >= NHRP_CACHE_CACHED) {
nhrp_cache_set_used(c, 1); nhrp_cache_set_used(c, 1);
debugf(NHRP_DEBUG_KERNEL, debugf(NHRP_DEBUG_KERNEL,