summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_updgrp_packet.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2021-07-14 22:55:20 +0200
committerDonatas Abraitis <donatas.abraitis@gmail.com>2021-07-14 22:55:20 +0200
commitfea96c555b64fd8fc7af87e94632114ae06d5cb3 (patch)
tree05ad8a536b60cece2fdb3977ec41c7761a4ed06a /bgpd/bgp_updgrp_packet.c
parentMerge pull request #9041 from taspelund/next-hop-self-force-doc (diff)
downloadfrr-fea96c555b64fd8fc7af87e94632114ae06d5cb3.tar.xz
frr-fea96c555b64fd8fc7af87e94632114ae06d5cb3.zip
bgpd: Increase sent prefix count per subgrp when originating default route
Before we didn't count default-originate to pfxSnt. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_updgrp_packet.c')
-rw-r--r--bgpd/bgp_updgrp_packet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_updgrp_packet.c b/bgpd/bgp_updgrp_packet.c
index 038ef4f79..9c32c7ed1 100644
--- a/bgpd/bgp_updgrp_packet.c
+++ b/bgpd/bgp_updgrp_packet.c
@@ -1158,6 +1158,7 @@ void subgroup_default_update_packet(struct update_subgroup *subgrp,
(void)bpacket_queue_add(SUBGRP_PKTQ(subgrp), s, &vecarr);
subgroup_trigger_write(subgrp);
+ subgrp->scount++;
}
void subgroup_default_withdraw_packet(struct update_subgroup *subgrp)
@@ -1250,6 +1251,7 @@ void subgroup_default_withdraw_packet(struct update_subgroup *subgrp)
(void)bpacket_queue_add(SUBGRP_PKTQ(subgrp), s, NULL);
subgroup_trigger_write(subgrp);
+ subgrp->scount--;
}
static void