summaryrefslogtreecommitdiff
path: root/bgpd/bgp_mpath.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-03-21 17:36:48 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2020-03-24 07:33:13 -0400
commitcb9f254c01a79c15dfa21f719396ca0d02e1c4c2 (patch)
tree74e2c8ae24398a808400547b40759629b74b318f /bgpd/bgp_mpath.c
parent5b299acd1fbb8e4a9abe9c35a7b35d5e9af2f170 (diff)
bgpd: Make bgp_debug_bestpath take a `struct bgp_node`
Defer the grabbing of the prefix for as long as is possible. This is a long term rework of how we access the `struct bgp_node` to only use accessor functions. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_mpath.c')
-rw-r--r--bgpd/bgp_mpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_mpath.c b/bgpd/bgp_mpath.c
index 9e73acdc01..7ec33556c7 100644
--- a/bgpd/bgp_mpath.c
+++ b/bgpd/bgp_mpath.c
@@ -457,7 +457,7 @@ void bgp_path_info_mpath_update(struct bgp_node *rn,
old_mpath_count = 0;
prev_mpath = new_best;
mp_node = listhead(mp_list);
- debug = bgp_debug_bestpath(&rn->p);
+ debug = bgp_debug_bestpath(rn);
if (debug)
prefix2str(&rn->p, pfx_buf, sizeof(pfx_buf));