]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: support redirect import more than one route-target ipv6
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 29 Nov 2019 10:57:29 +0000 (11:57 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 18 Nov 2021 17:35:18 +0000 (18:35 +0100)
the fix consists in parsing the ext community list ipv6 by taking
account the size of the ecommunity val size.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_ecommunity.c

index 1e95d401aace2739ebc73898256a8b5ba7a36357..5a053a7f34f40cd651b17c0e031ca724319d2556 100644 (file)
@@ -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++;