summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2024-08-24 17:40:04 -0400
committerGitHub <noreply@github.com>2024-08-24 17:40:04 -0400
commit516b0092c9dbd9c2bf627f088d72354c89d55156 (patch)
tree0b8dc3f3c8dbf1224dd794bbdd87793ce9c963b4
parent3987ceac3adf9c21dac6b93633da7ab81ef72b6d (diff)
parenteb10a8790f93198b21d13b9d383cb82b20044168 (diff)
Merge pull request #16645 from FRRouting/mergify/bp/stable/10.0/pr-16640
nhrpd: fix sending /32 shortcut (backport #16640)
-rw-r--r--nhrpd/nhrp_route.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nhrpd/nhrp_route.c b/nhrpd/nhrp_route.c
index fd9090bd6e..7adc4a6399 100644
--- a/nhrpd/nhrp_route.c
+++ b/nhrpd/nhrp_route.c
@@ -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];