]> git.proxmox.com Git - mirror_frr.git/commit - sharpd/sharp_zebra.c
*: When matching against a nexthop send and process what it matched against
authorDonald Sharp <sharpd@nvidia.com>
Sat, 12 Mar 2022 15:47:16 +0000 (10:47 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Sat, 12 Mar 2022 16:18:45 +0000 (11:18 -0500)
commit06e4e90132ad23815c6f288dd7e6be334f5ab233
treed2e36926ed80e04a6b948baafc3a4bb065b7c02c
parent5c7861fe352c41de1b322b8960827773bd0222f9
*: When matching against a nexthop send and process what it matched against

Currently the nexthop tracking code is only sending to the requestor
what it was requested to match against.  When the nexthop tracking
code was simplified to not need an import check and a nexthop check
in b8210849b8ac1abe2d5d9a5ab2459abfde65efa5 for bgpd.  It was not
noticed that a longer prefix could match but it would be seen
as a match because FRR was not sending up both the resolved
route prefix and the route FRR was asked to match against.

This code change causes the nexthop tracking code to pass
back up the matched requested route (so that the calling
protocol can figure out which one it is being told about )
as well as the actual prefix that was matched to.

Fixes: #10766
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_nht.c
lib/zclient.c
lib/zclient.h
ospf6d/ospf6_zebra.c
pbrd/pbr_zebra.c
pimd/pim_nht.c
sharpd/sharp_zebra.c
staticd/static_zebra.c
zebra/zebra_rnh.c
zebra/zebra_srte.c