mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-30 01:16:39 +00:00
bgpd: support redirect import more than one route-target ipv6
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>
This commit is contained in:
parent
537355b18a
commit
f32f3ae5c9
@ -934,7 +934,7 @@ char *ecommunity_ecom2str(struct ecommunity *ecom, int format, int filter)
|
|||||||
strlcat(str_buf, " ", str_size);
|
strlcat(str_buf, " ", str_size);
|
||||||
|
|
||||||
/* Retrieve value field */
|
/* Retrieve value field */
|
||||||
pnt = ecom->val + (i * 8);
|
pnt = ecom->val + (i * ecom->unit_size);
|
||||||
|
|
||||||
/* High-order octet is the type */
|
/* High-order octet is the type */
|
||||||
type = *pnt++;
|
type = *pnt++;
|
||||||
|
Loading…
Reference in New Issue
Block a user