summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_rpki.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-10-02 22:41:30 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-10-09 20:14:25 +0200
commit4b7e60662595e43aaf41046746fcaa97d17abb5d (patch)
tree0d991048b7b8e4d1a773141711f75173fee14059 /bgpd/bgp_rpki.c
parentbgpd: Convert BGP_INFO_XXX to BGP_PATH_XXX (diff)
downloadfrr-4b7e60662595e43aaf41046746fcaa97d17abb5d.tar.xz
frr-4b7e60662595e43aaf41046746fcaa97d17abb5d.zip
bgpd: Convert `struct bgp_info` to `struct bgp_path_info`
Do a straight conversion of `struct bgp_info` to `struct bgp_path_info`. This commit will setup the rename of variables as well. This is being done because `struct bgp_info` is not descriptive of what this data actually is. It is path information for routes that we keep to build the actual routes nexthops plus some extra information. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_rpki.c')
-rw-r--r--bgpd/bgp_rpki.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c
index 56566525a..84fca2d12 100644
--- a/bgpd/bgp_rpki.c
+++ b/bgpd/bgp_rpki.c
@@ -217,7 +217,7 @@ static route_map_result_t route_match(void *rule, const struct prefix *prefix,
route_map_object_t type, void *object)
{
int *rpki_status = rule;
- struct bgp_info *bgp_info;
+ struct bgp_path_info *bgp_info;
if (type == RMAP_BGP) {
bgp_info = object;
@@ -418,7 +418,7 @@ static void revalidate_bgp_node(struct bgp_node *bgp_node, afi_t afi,
for (ain = bgp_node->adj_in; ain; ain = ain->next) {
int ret;
- struct bgp_info *bgp_info = bgp_node->info;
+ struct bgp_path_info *bgp_info = bgp_node->info;
mpls_label_t *label = NULL;
uint32_t num_labels = 0;