added error stack

pull/23/head
Gerard Wagener 2018-11-27 15:30:58 +01:00
parent 9bfc03f5c6
commit 6c827c86d5
1 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,9 @@
#define D4_H #define D4_H
#define ND4PARAMS 5 #define ND4PARAMS 5
#define NERRORS 100
#define SZCONFVALUE 1024 #define SZCONFVALUE 1024
#define SZERRVALUE 1024
typedef struct d4_header_s { typedef struct d4_header_s {
uint8_t version; uint8_t version;
@ -33,10 +35,11 @@ typedef struct d4_s {
int d4_error; int d4_error;
int errno_copy; int errno_copy;
char conf[ND4PARAMS][SZCONFVALUE]; char conf[ND4PARAMS][SZCONFVALUE];
char errors[NERRORS][SZERRVALUE];
int err_idx;
} d4_t; } d4_t;
/* D4 configuration is a directory structure shown below (like proc filesytem) /* D4 configuration is a directory structure shown below (like proc filesytem)
* d4-conf/snaplen * d4-conf/snaplen
* d4-conf/caplen * d4-conf/caplen