Skip to content

Commit

Permalink
Merge pull request #16644 from FRRouting/mergify/bp/stable/10.1/pr-16640
Browse files Browse the repository at this point in the history
nhrpd: fix sending /32 shortcut (backport #16640)
  • Loading branch information
ton31337 authored Aug 24, 2024
2 parents c0317ac + 90b534b commit 119041b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nhrpd/nhrp_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 119041b

Please sign in to comment.