diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-22 05:02:18 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-26 21:25:16 +0100 |
commit | b54892e0ea247f52beea96855734919f80de5217 (patch) | |
tree | b76b8a7899121ff14334dd7773d335b8b8b705d2 /bgpd/bgp_damp.c | |
parent | lib, bgpd: Another round of `struct const prefix` cleanup (diff) | |
download | frr-b54892e0ea247f52beea96855734919f80de5217.tar.xz frr-b54892e0ea247f52beea96855734919f80de5217.zip |
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_damp.c')
-rw-r--r-- | bgpd/bgp_damp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_damp.c b/bgpd/bgp_damp.c index 792f3cea7..538610f6d 100644 --- a/bgpd/bgp_damp.c +++ b/bgpd/bgp_damp.c @@ -155,9 +155,9 @@ static int bgp_reuse_timer(struct thread *t) if (bdi->lastrecord == BGP_RECORD_UPDATE) { bgp_path_info_unset_flag(bdi->rn, bdi->path, BGP_PATH_HISTORY); - bgp_aggregate_increment(bgp, &bdi->rn->p, - bdi->path, bdi->afi, - bdi->safi); + bgp_aggregate_increment( + bgp, bgp_node_get_prefix(bdi->rn), + bdi->path, bdi->afi, bdi->safi); bgp_process(bgp, bdi->rn, bdi->afi, bdi->safi); } |