mirror of https://github.com/D4-project/d4-core
added error stack
parent
9bfc03f5c6
commit
6c827c86d5
|
@ -2,7 +2,9 @@
|
|||
#define D4_H
|
||||
|
||||
#define ND4PARAMS 5
|
||||
#define NERRORS 100
|
||||
#define SZCONFVALUE 1024
|
||||
#define SZERRVALUE 1024
|
||||
|
||||
typedef struct d4_header_s {
|
||||
uint8_t version;
|
||||
|
@ -33,10 +35,11 @@ typedef struct d4_s {
|
|||
int d4_error;
|
||||
int errno_copy;
|
||||
char conf[ND4PARAMS][SZCONFVALUE];
|
||||
char errors[NERRORS][SZERRVALUE];
|
||||
int err_idx;
|
||||
} d4_t;
|
||||
|
||||
|
||||
|
||||
/* D4 configuration is a directory structure shown below (like proc filesytem)
|
||||
* d4-conf/snaplen
|
||||
* d4-conf/caplen
|
||||
|
|
Loading…
Reference in New Issue