From c4986af74e83c3bb1c7116469be71d5f32645dfc Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Wed, 10 Apr 2024 10:12:02 +0300 Subject: [PATCH] bgpd: Adopt ecommunity_linkbw_present for IPv6 extended communities Signed-off-by: Donatas Abraitis --- bgpd/bgp_ecommunity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c index 3d0193f7b8..6cded922c2 100644 --- a/bgpd/bgp_ecommunity.c +++ b/bgpd/bgp_ecommunity.c @@ -1820,7 +1820,7 @@ const uint8_t *ecommunity_linkbw_present(struct ecommunity *ecom, uint64_t *bw) uint8_t type, sub_type; uint32_t bwval; - eval = pnt = (ecom->val + (i * ECOMMUNITY_SIZE)); + eval = pnt = (ecom->val + (i * ecom->unit_size)); type = *pnt++; sub_type = *pnt++; -- 2.39.5