From: Ameya Dharkar Date: Tue, 9 Oct 2018 18:56:46 +0000 (-0700) Subject: bgpd: Incorrect sent prefix count for a split subgroup X-Git-Tag: frr-7.1-dev~281^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F3153%2Fhead;p=mirror%2Ffrr.git bgpd: Incorrect sent prefix count for a split subgroup When a subgroup splits to form a new subgroup because of policy changes for a peer, new subgroup copies adj out(state about advertised routes) from the parent subgroup. At the same time, it should also copy scount(advertised prefix count) to the new subgroup for the count to be in sync with the adj_out for the subgroup. Signed-off-by: Ameya Dharkar --- diff --git a/bgpd/bgp_updgrp.c b/bgpd/bgp_updgrp.c index 7f7b4a893f..2a4c3690c9 100644 --- a/bgpd/bgp_updgrp.c +++ b/bgpd/bgp_updgrp.c @@ -1182,6 +1182,8 @@ static void update_subgroup_copy_adj_out(struct update_subgroup *source, aout_copy->attr = aout->attr ? bgp_attr_intern(aout->attr) : NULL; } + + dest->scount = source->scount; } /*