]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: Cleanup non-normal compiled code path
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 12 Dec 2018 21:18:15 +0000 (16:18 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 12 Dec 2018 21:18:15 +0000 (16:18 -0500)
Looks like we missed some code in a non-normal compiled
code path for the bgp_path_info conversion.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_rpki.c
bgpd/bgp_snmp.c

index c69997a41da0f0c1a1a21046cd52ddc7c828cf67..b614e87d23e3fb9111602389896a361c2cabf204 100644 (file)
@@ -418,7 +418,8 @@ 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_path_info *path = bgp_info_from_node(bgp_node);
+               struct bgp_path_info *path =
+                       bgp_node_get_bgp_path_info(bgp_node);
                mpls_label_t *label = NULL;
                uint32_t num_labels = 0;
 
index e9ba93bbd46b58c13f2fec8f8bd64aa256cb590a..c1321dd7dc106d84ec18e45a31d721ba7511cf0e 100644 (file)
@@ -715,7 +715,7 @@ static struct bgp_path_info *bgp4PathAttrLookup(struct variable *v, oid name[],
                if (rn) {
                        bgp_unlock_node(rn);
 
-                       for (path = bgp_info_from_node(rn); path;
+                       for (path = bgp_node_get_bgp_path_info(rn); path;
                             path = path->next)
                                if (sockunion_same(&path->peer->su, &su))
                                        return path;
@@ -763,7 +763,7 @@ static struct bgp_path_info *bgp4PathAttrLookup(struct variable *v, oid name[],
                do {
                        min = NULL;
 
-                       for (path = bgp_info_from_node(rn); path;
+                       for (path = bgp_node_get_bgp_path_info(rn); path;
                             path = path->next) {
                                if (path->peer->su.sin.sin_family == AF_INET
                                    && ntohl(paddr.s_addr)