]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_debug.c
Merge pull request #6017 from sarav511/ovrride
[mirror_frr.git] / bgpd / bgp_debug.c
index bae1079a1d34371e94fc04200c27d2ea06bd0abf..5104e235156edcd8d55eecf4998cf5c2743f4930 100644 (file)
@@ -2528,12 +2528,12 @@ bool bgp_debug_update(struct peer *peer, const struct prefix *p,
        return false;
 }
 
-bool bgp_debug_bestpath(struct prefix *p)
+bool bgp_debug_bestpath(struct bgp_node *rn)
 {
        if (BGP_DEBUG(bestpath, BESTPATH)) {
-               if (bgp_debug_per_prefix(p, term_bgp_debug_bestpath,
-                                        BGP_DEBUG_BESTPATH,
-                                        bgp_debug_bestpath_prefixes))
+               if (bgp_debug_per_prefix(
+                           bgp_node_get_prefix(rn), term_bgp_debug_bestpath,
+                           BGP_DEBUG_BESTPATH, bgp_debug_bestpath_prefixes))
                        return true;
        }
 
@@ -2553,7 +2553,7 @@ bool bgp_debug_zebra(const struct prefix *p)
 }
 
 const char *bgp_debug_rdpfxpath2str(afi_t afi, safi_t safi,
-                                   struct prefix_rd *prd,
+                                   const struct prefix_rd *prd,
                                    union prefixconstptr pu,
                                    mpls_label_t *label, uint32_t num_labels,
                                    int addpath_valid, uint32_t addpath_id,