if (BGP_DEBUG(flowspec, FLOWSPEC)) {
char return_string[BGP_FLOWSPEC_NLRI_STRING_MAX];
- char local_string[BGP_FLOWSPEC_NLRI_STRING_MAX];
+ char local_string[BGP_FLOWSPEC_NLRI_STRING_MAX * 2];
char ec_string[BGP_FLOWSPEC_NLRI_STRING_MAX];
char *s = NULL;
p.u.prefix_flowspec.prefixlen,
return_string,
NLRI_STRING_FORMAT_MIN, NULL);
- snprintf(ec_string, BGP_FLOWSPEC_NLRI_STRING_MAX,
+ snprintf(ec_string, sizeof(ec_string),
"EC{none}");
if (attr && attr->ecommunity) {
s = ecommunity_ecom2str(attr->ecommunity,
ECOMMUNITY_FORMAT_ROUTE_MAP, 0);
- snprintf(ec_string,
- BGP_FLOWSPEC_NLRI_STRING_MAX,
+ snprintf(ec_string, sizeof(ec_string),
"EC{%s}",
s == NULL ? "none" : s);
if (s)
ecommunity_strfree(&s);
}
- snprintf(local_string, BGP_FLOWSPEC_NLRI_STRING_MAX,
+ snprintf(local_string, sizeof(local_string),
"FS Rx %s %s %s %s", withdraw ?
"Withdraw":"Update",
afi2str(afi), return_string,
|| (safi == SAFI_EVPN
&& BGP_ATTR_NEXTHOP_AFI_IP6(attr))
|| (BGP_ATTR_NEXTHOP_AFI_IP6(attr))) {
- char buf_a[BUFSIZ];
- char buf_b[BUFSIZ];
+ char buf_a[512];
+ char buf_b[512];
char buf_c[BUFSIZ];
if (attr->mp_nexthop_len
== BGP_ATTR_NHLEN_IPV6_GLOBAL) {
struct prefix *p;
struct prefix_rd *prd;
struct bgp_static *bgp_static;
- char buf[PREFIX_STRLEN];
+ char buf[PREFIX_STRLEN * 2];
char buf2[SU_ADDRSTRLEN];
char rdbuf[RD_ADDRSTRLEN];
char frr_protoname[256] = "NONE";
char frr_protonameinst[256] = "NONE";
-char config_default[256];
+char config_default[512];
char frr_zclientpath[256];
-static char pidfile_default[256];
+static char pidfile_default[512];
static char vtypath_default[256];
bool debug_memstats_at_exit = 0;
DECLARE_KOOH(frr_fini, (), ())
extern void frr_fini(void);
-extern char config_default[256];
+extern char config_default[512];
extern char frr_zclientpath[256];
extern const char frr_sysconfdir[];
extern const char frr_vtydir[];
size_t err_len)
{
void *handle = NULL;
- char name[PATH_MAX], fullpath[PATH_MAX], *args;
+ char name[PATH_MAX], fullpath[PATH_MAX * 2], *args;
struct frrmod_runtime *rtinfo, **rtinfop;
const struct frrmod_info *info;
/* Neighbor structure */
struct ospf6_neighbor {
/* Neighbor Router ID String */
- char name[32];
+ char name[36];
/* OSPFv3 Interface this neighbor belongs to */
struct ospf6_interface *ospf6_if;
#define FRR_CONFIG_NAME "frr.conf"
/* Configuration file name and directory. */
-static char vtysh_config[MAXPATHLEN];
-char frr_config[MAXPATHLEN];
+static char vtysh_config[MAXPATHLEN * 3];
+char frr_config[MAXPATHLEN * 3];
char vtydir[MAXPATHLEN];
static char history_file[MAXPATHLEN];