Skip to content

Commit

Permalink
Merge pull request FRRouting#16645 from FRRouting/mergify/bp/stable/1…
Browse files Browse the repository at this point in the history
…0.0/pr-16640

nhrpd: fix sending /32 shortcut (backport FRRouting#16640)
  • Loading branch information
Jafaral authored Aug 24, 2024
2 parents 3987cea + eb10a87 commit 516b009
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 516b009

Please sign in to comment.