diff options
author | Chirag Shah <chirag@nvidia.com> | 2025-01-07 03:57:54 +0100 |
---|---|---|
committer | Chirag Shah <chirag@nvidia.com> | 2025-01-22 00:17:20 +0100 |
commit | c358b92c9f21c26961b1083662479961312f003e (patch) | |
tree | a5fb471d500472397791247995808f4d6fb2c8f4 /bgpd/bgp_route.h | |
parent | Merge pull request #17895 from LabNConsulting/chopps/fix-coverity-use-after-free (diff) | |
download | frr-c358b92c9f21c26961b1083662479961312f003e.tar.xz frr-c358b92c9f21c26961b1083662479961312f003e.zip |
bgpd: fix evpn path info get api
EVPN imported routes AF is not AF_EVPN, in that case
the path info extra with EVPN is nver created.
In order to create evpn info under path extra, define
new api which does not specifically check for AF_EVPN
afi type.
Signed-off-by: Chirag Shah <chirag@nvidia.com>
Diffstat (limited to '')
-rw-r--r-- | bgpd/bgp_route.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_route.h b/bgpd/bgp_route.h index 7f4a3b918..c4cbbee0c 100644 --- a/bgpd/bgp_route.h +++ b/bgpd/bgp_route.h @@ -801,6 +801,7 @@ extern void bgp_path_info_delete(struct bgp_dest *dest, struct bgp_path_info *pi); extern struct bgp_path_info_extra * bgp_path_info_extra_get(struct bgp_path_info *path); +extern struct bgp_path_info_extra *bgp_evpn_path_info_extra_get(struct bgp_path_info *path); extern bool bgp_path_info_has_valid_label(const struct bgp_path_info *path); extern void bgp_path_info_set_flag(struct bgp_dest *dest, struct bgp_path_info *path, uint32_t flag); |