Merge pull request #16640 from louis-6wind/fix-nhrp-local

nhrpd: fix sending /32 shortcut
This commit is contained in:
Donatas Abraitis 2024-08-23 22:57:09 +03:00 committed by GitHub
commit 7af65715fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -219,6 +219,10 @@ int nhrp_route_read(ZAPI_CALLBACK_ARGS)
if (api.type == ZEBRA_ROUTE_NHRP)
return 0;
/* ignore local routes */
if (api.type == ZEBRA_ROUTE_LOCAL)
return 0;
sockunion_family(&nexthop_addr) = AF_UNSPEC;
if (CHECK_FLAG(api.message, ZAPI_MESSAGE_NEXTHOP)) {
api_nh = &api.nexthops[0];