]> git.puffer.fish 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>
Thu, 31 May 2018 15:44:40 +0000 (17:44 +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 3d14a761328a005d0f5d05406fd7052cf903c1fd..cdd9b987a3e018d2e09888ed2b8593c170090901 100644 (file)
@@ -639,7 +639,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;