summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_evpn.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-03-27 00:11:58 +0100
committerDavid Lamparter <equinox@diac24.net>2020-06-23 17:32:52 +0200
commit9bcb3eef541180a17341d1d4510586efc35711db (patch)
tree686e6d7721a180a168cb3353e2c900b63069e6c3 /bgpd/bgp_evpn.h
parentMerge pull request #6625 from ton31337/fix/network_check_import_for_static_bgp (diff)
downloadfrr-9bcb3eef541180a17341d1d4510586efc35711db.tar.xz
frr-9bcb3eef541180a17341d1d4510586efc35711db.zip
bgp: rename bgp_node to bgp_dest
This is the bulk part extracted from "bgpd: Convert from `struct bgp_node` to `struct bgp_dest`". It should not result in any functional change. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_evpn.h')
-rw-r--r--bgpd/bgp_evpn.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/bgpd/bgp_evpn.h b/bgpd/bgp_evpn.h
index a48a707b9..267c87ee5 100644
--- a/bgpd/bgp_evpn.h
+++ b/bgpd/bgp_evpn.h
@@ -81,7 +81,7 @@ static inline int is_route_parent_evpn(struct bgp_path_info *ri)
{
struct bgp_path_info *parent_ri;
struct bgp_table *table;
- struct bgp_node *rn;
+ struct bgp_dest *dest;
/* If not imported (or doesn't have a parent), bail. */
if (ri->sub_type != BGP_ROUTE_IMPORTED ||
@@ -96,10 +96,10 @@ static inline int is_route_parent_evpn(struct bgp_path_info *ri)
;
/* See if of family L2VPN/EVPN */
- rn = parent_ri->net;
- if (!rn)
+ dest = parent_ri->net;
+ if (!dest)
return 0;
- table = bgp_node_table(rn);
+ table = bgp_dest_table(dest);
if (table &&
table->afi == AFI_L2VPN &&
table->safi == SAFI_EVPN)
@@ -120,7 +120,7 @@ static inline bool is_route_injectable_into_evpn(struct bgp_path_info *pi)
{
struct bgp_path_info *parent_pi;
struct bgp_table *table;
- struct bgp_node *rn;
+ struct bgp_dest *dest;
if (pi->sub_type != BGP_ROUTE_IMPORTED ||
!pi->extra ||
@@ -128,10 +128,10 @@ static inline bool is_route_injectable_into_evpn(struct bgp_path_info *pi)
return true;
parent_pi = (struct bgp_path_info *)pi->extra->parent;
- rn = parent_pi->net;
- if (!rn)
+ dest = parent_pi->net;
+ if (!dest)
return true;
- table = bgp_node_table(rn);
+ table = bgp_dest_table(dest);
if (table &&
table->afi == AFI_L2VPN &&
table->safi == SAFI_EVPN)