diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-04-10 10:12:02 +0300 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-04-22 17:49:16 +0300 |
| commit | c4986af74e83c3bb1c7116469be71d5f32645dfc (patch) | |
| tree | 0a10b2a137dff74f00d65e0fd7b124616c6595f7 | |
| parent | d9219ee847a179850c25d9d0f08511becc2d3102 (diff) | |
bgpd: Adopt ecommunity_linkbw_present for IPv6 extended communities
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
| -rw-r--r-- | bgpd/bgp_ecommunity.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++; |
