Define iface length name to 32 chars max (bug #9869)

master
Mike Massonnet 2014-11-22 18:06:12 +01:00
parent fbda085f4e
commit 18e253fc22
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@
#define UP_UPDATE_INTERVAL 20
#define IP_UPDATE_INTERVAL 20
#define IP_ADDRESS_LENGTH 64
#define INTERFACE_NAME_LENGTH 9
#define INTERFACE_NAME_LENGTH 32
#ifndef gettext_noop
#define gettext_noop(String) String

View File

@ -52,7 +52,7 @@
static gchar* DEFAULT_COLOR[] = { "#FF4F00", "#FFE500" };
#define UPDATE_TIMEOUT 250
#define MAX_LENGTH 10
#define MAX_LENGTH 32
#define IN 0
#define OUT 1

View File

@ -10,7 +10,7 @@
#define _SLURM_H_
typedef struct IfData{
char if_name[10]; /* The device name given as start parameter*/
char if_name[32]; /* The device name given as start parameter*/
int if_speed; /* The Interface speed */
char if_speedstring[12]; /* the measuring unit like Mbit, kbit */
int if_id; /* The ID which the interface inside the OS has */