diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-21 17:36:48 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-24 07:33:13 -0400 | 
| commit | cb9f254c01a79c15dfa21f719396ca0d02e1c4c2 (patch) | |
| tree | 74e2c8ae24398a808400547b40759629b74b318f /bgpd/bgp_mpath.c | |
| parent | 5b299acd1fbb8e4a9abe9c35a7b35d5e9af2f170 (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.c | 2 | 
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));  | 
