summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2021-11-19 13:50:01 +0100
committerGitHub <noreply@github.com>2021-11-19 13:50:01 +0100
commit41eec96003cb60771105b5105072681e990f7b5c (patch)
tree8b4dddbf2c6f08467a58be412f4fc16b0207be5e
parentMerge pull request #10074 from opensourcerouting/assorted-20211116 (diff)
parentbgpd: support redirect import more than one route-target ipv6 (diff)
downloadfrr-41eec96003cb60771105b5105072681e990f7b5c.tar.xz
frr-41eec96003cb60771105b5105072681e990f7b5c.zip
Merge pull request #10097 from pguibert6WIND/ipv6_fix_ecom_list
bgpd: support redirect import more than one route-target ipv6
-rw-r--r--bgpd/bgp_ecommunity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c
index 1e95d401a..5a053a7f3 100644
--- a/bgpd/bgp_ecommunity.c
+++ b/bgpd/bgp_ecommunity.c
@@ -934,7 +934,7 @@ char *ecommunity_ecom2str(struct ecommunity *ecom, int format, int filter)
strlcat(str_buf, " ", str_size);
/* Retrieve value field */
- pnt = ecom->val + (i * 8);
+ pnt = ecom->val + (i * ecom->unit_size);
/* High-order octet is the type */
type = *pnt++;