]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_addpath.c
bgpd: Allow shortened 'no set large-community' and 'no set large-comm-list'
[mirror_frr.git] / bgpd / bgp_addpath.c
index 22401f0017735da5548484c548ee242ce3811121..55a86f99fc66467e4246c108474944df96ca9498 100644 (file)
@@ -193,7 +193,7 @@ static void bgp_addpath_flush_type(struct bgp *bgp, afi_t afi, safi_t safi,
                idalloc_drain_pool(
                        bgp->tx_addpath.id_allocators[afi][safi][addpath_type],
                        &(rn->tx_addpath.free_ids[addpath_type]));
-               for (pi = rn->info; pi; pi = pi->next) {
+               for (pi = bgp_node_get_bgp_path_info(rn); pi; pi = pi->next) {
                        if (pi->tx_addpath.addpath_tx_id[addpath_type]
                            != IDALLOC_INVALID) {
                                idalloc_free(
@@ -256,7 +256,7 @@ static void bgp_addpath_populate_type(struct bgp *bgp, afi_t afi, safi_t safi,
 
        for (rn = bgp_table_top(bgp->rib[afi][safi]); rn;
             rn = bgp_route_next(rn))
-               for (bi = rn->info; bi; bi = bi->next)
+               for (bi = bgp_node_get_bgp_path_info(rn); bi; bi = bi->next)
                        bgp_addpath_populate_path(allocator, bi, addpath_type);
 }
 
@@ -396,7 +396,7 @@ void bgp_addpath_update_ids(struct bgp *bgp, struct bgp_node *bn, afi_t afi,
                        continue;
 
                /* Free Unused IDs back to the pool.*/
-               for (pi = bn->info; pi; pi = pi->next) {
+               for (pi = bgp_node_get_bgp_path_info(bn); pi; pi = pi->next) {
                        if (pi->tx_addpath.addpath_tx_id[i] != IDALLOC_INVALID
                            && !bgp_addpath_tx_path(i, pi)) {
                                idalloc_free_to_pool(pool_ptr,
@@ -407,7 +407,7 @@ void bgp_addpath_update_ids(struct bgp *bgp, struct bgp_node *bn, afi_t afi,
                }
 
                /* Give IDs to paths that need them (pulling from the pool) */
-               for (pi = bn->info; pi; pi = pi->next) {
+               for (pi = bgp_node_get_bgp_path_info(bn); pi; pi = pi->next) {
                        if (pi->tx_addpath.addpath_tx_id[i] == IDALLOC_INVALID
                            && bgp_addpath_tx_path(i, pi)) {
                                pi->tx_addpath.addpath_tx_id[i] =