Merge pull request #15350 from FRRouting/mergify/bp/stable/9.1/pr-15316

nhrp: fix race condition in  null lladdr from zebra (backport #15316)
This commit is contained in:
Donatas Abraitis 2024-02-10 16:55:21 +02:00 committed by GitHub
commit fde18a006f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -184,6 +184,11 @@ int nhrp_neighbor_operation(ZAPI_CALLBACK_ARGS)
"Netlink: update binding for %pSU dev %s from c %pSU peer.vc.nbma %pSU to lladdr %pSU",
&addr, ifp->name, &c->cur.remote_nbma_natoa,
&c->cur.peer->vc->remote.nbma, &lladdr);
if (lladdr.sa.sa_family == AF_UNSPEC)
/* nothing from zebra, so use nhrp peer */
lladdr = c->cur.peer->vc->remote.nbma;
/* In case of shortcuts, nbma is given by lladdr, not
* vc->remote.nbma.
*/