mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 06:34:51 +00:00
bgpd: increase buffer size to store ecomunity as a string
On the case where an ecom from FS redirect is received, the ecom may be with the format A.B.C.D:E. On this case, the printable format of the Flowspec redirect VRF ecom value may use more bytes in the buffer dedicated for that. The buffer that stores the ecommunity is increased. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
f0936054e0
commit
1f5235f68a
@ -644,7 +644,7 @@ char *ecommunity_ecom2str(struct ecommunity *ecom, int format, int filter)
|
||||
uint8_t *pnt;
|
||||
uint8_t type = 0;
|
||||
uint8_t sub_type = 0;
|
||||
#define ECOMMUNITY_STR_DEFAULT_LEN 27
|
||||
#define ECOMMUNITY_STR_DEFAULT_LEN 64
|
||||
int str_size;
|
||||
int str_pnt;
|
||||
char *str_buf;
|
||||
|
Loading…
Reference in New Issue
Block a user