mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 12:41:21 +00:00
ospf6d: New version of GCC with new warnings
GCC 7.1.1 returned warnings about buffer sizes not being big enough to handle the full string that could be generated. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
90f03597d9
commit
68bfcc0539
@ -1437,7 +1437,7 @@ static void ospf6_brouter_debug_print(struct ospf6_route *brouter)
|
|||||||
char brouter_name[16];
|
char brouter_name[16];
|
||||||
char area_name[16];
|
char area_name[16];
|
||||||
char destination[64];
|
char destination[64];
|
||||||
char installed[16], changed[16];
|
char installed[64], changed[64];
|
||||||
struct timeval now, res;
|
struct timeval now, res;
|
||||||
char id[16], adv_router[16];
|
char id[16], adv_router[16];
|
||||||
char capa[16], options[16];
|
char capa[16], options[16];
|
||||||
|
@ -467,7 +467,7 @@ void ospf6_lsa_show(struct vty *vty, struct ospf6_lsa *lsa)
|
|||||||
char adv_router[64], id[64];
|
char adv_router[64], id[64];
|
||||||
struct ospf6_lsa_handler *handler;
|
struct ospf6_lsa_handler *handler;
|
||||||
struct timeval now, res;
|
struct timeval now, res;
|
||||||
char duration[16];
|
char duration[64];
|
||||||
|
|
||||||
assert(lsa && lsa->header);
|
assert(lsa && lsa->header);
|
||||||
|
|
||||||
|
@ -582,10 +582,10 @@ int inactivity_timer(struct thread *thread)
|
|||||||
static void ospf6_neighbor_show(struct vty *vty, struct ospf6_neighbor *on)
|
static void ospf6_neighbor_show(struct vty *vty, struct ospf6_neighbor *on)
|
||||||
{
|
{
|
||||||
char router_id[16];
|
char router_id[16];
|
||||||
char duration[16];
|
char duration[64];
|
||||||
struct timeval res;
|
struct timeval res;
|
||||||
char nstate[16];
|
char nstate[16];
|
||||||
char deadtime[16];
|
char deadtime[64];
|
||||||
long h, m, s;
|
long h, m, s;
|
||||||
|
|
||||||
/* Router-ID (Name) */
|
/* Router-ID (Name) */
|
||||||
@ -640,7 +640,7 @@ static void ospf6_neighbor_show_drchoice(struct vty *vty,
|
|||||||
{
|
{
|
||||||
char router_id[16];
|
char router_id[16];
|
||||||
char drouter[16], bdrouter[16];
|
char drouter[16], bdrouter[16];
|
||||||
char duration[16];
|
char duration[64];
|
||||||
struct timeval now, res;
|
struct timeval now, res;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -945,7 +945,7 @@ void ospf6_route_show(struct vty *vty, struct ospf6_route *route)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
char destination[PREFIX2STR_BUFFER], nexthop[64];
|
char destination[PREFIX2STR_BUFFER], nexthop[64];
|
||||||
char duration[16];
|
char duration[64];
|
||||||
const char *ifname;
|
const char *ifname;
|
||||||
struct timeval now, res;
|
struct timeval now, res;
|
||||||
struct listnode *node;
|
struct listnode *node;
|
||||||
@ -991,7 +991,7 @@ void ospf6_route_show_detail(struct vty *vty, struct ospf6_route *route)
|
|||||||
char destination[PREFIX2STR_BUFFER], nexthop[64];
|
char destination[PREFIX2STR_BUFFER], nexthop[64];
|
||||||
char area_id[16], id[16], adv_router[16], capa[16], options[16];
|
char area_id[16], id[16], adv_router[16], capa[16], options[16];
|
||||||
struct timeval now, res;
|
struct timeval now, res;
|
||||||
char duration[16];
|
char duration[64];
|
||||||
struct listnode *node;
|
struct listnode *node;
|
||||||
struct ospf6_nexthop *nh;
|
struct ospf6_nexthop *nh;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user