diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-22 00:02:18 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-26 16:25:16 -0400 |
| commit | b54892e0ea247f52beea96855734919f80de5217 (patch) | |
| tree | b76b8a7899121ff14334dd7773d335b8b8b705d2 /bgpd/bgp_debug.c | |
| parent | 5f040085bad9cff365fe4bed0696ccf7494840b5 (diff) | |
bgpd: Convert users of `rn->p` to use accessor function
Add new function `bgp_node_get_prefix()` and modify
the bgp code base to use it.
This is prep work for the struct bgp_dest rework.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_debug.c')
| -rw-r--r-- | bgpd/bgp_debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_debug.c b/bgpd/bgp_debug.c index 897b78132e..5104e23515 100644 --- a/bgpd/bgp_debug.c +++ b/bgpd/bgp_debug.c @@ -2532,7 +2532,7 @@ bool bgp_debug_bestpath(struct bgp_node *rn) { if (BGP_DEBUG(bestpath, BESTPATH)) { if (bgp_debug_per_prefix( - &rn->p, term_bgp_debug_bestpath, + bgp_node_get_prefix(rn), term_bgp_debug_bestpath, BGP_DEBUG_BESTPATH, bgp_debug_bestpath_prefixes)) return true; } |
