]> git.puffer.fish Git - mirror/frr.git/commit
*: 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)
committermergify-bot <noreply@mergify.com>
Sat, 12 Mar 2022 19:46:38 +0000 (19:46 +0000)
commita310b24a6d0e3c8a41a8478ccaae11f19c8a2250
treec8ba5717265e3384d607ddce64b8a311c37f7458
parentb7689fca520a6338a92ab6fb3807d4a3cc2b110a
*: 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>
(cherry picked from commit 06e4e90132ad23815c6f288dd7e6be334f5ab233)
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