]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: increase buffer size to store ecomunity as a string
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 23 May 2018 10:10:00 +0000 (12:10 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 25 May 2018 13:49:38 +0000 (15:49 +0200)
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>
bgpd/bgp_ecommunity.c

index eff6f0f81aaf8915afba02416af9e13775a7894b..20f5e15d6943243bede138153551d16d53f8f262 100644 (file)
@@ -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;