Move definition of config struct into src/config.h.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2019-07-05 12:08:14 +02:00
parent ee671a11e1
commit 29dd190562
3 changed files with 18 additions and 19 deletions
-18
View File
@@ -174,24 +174,6 @@ typedef struct {
int reply_domain;
} countersStruct;
typedef struct {
int maxDBdays;
int DBinterval;
int port;
int maxlogage;
int16_t debug;
unsigned char privacylevel;
unsigned char blockingmode;
bool socket_listenlocal;
bool analyze_AAAA;
bool resolveIPv6;
bool resolveIPv4;
bool ignore_localhost;
bool analyze_only_A_AAAA;
bool DBimport;
bool parse_arp_cache;
} ConfigStruct;
// Dynamic structs
typedef struct {
unsigned char magic;
+18
View File
@@ -16,6 +16,24 @@ void get_privacy_level(FILE *fp);
void get_blocking_mode(FILE *fp);
void read_debuging_settings(FILE *fp);
typedef struct {
int maxDBdays;
int DBinterval;
int port;
int maxlogage;
int16_t debug;
unsigned char privacylevel;
unsigned char blockingmode;
bool socket_listenlocal;
bool analyze_AAAA;
bool resolveIPv6;
bool resolveIPv4;
bool ignore_localhost;
bool analyze_only_A_AAAA;
bool DBimport;
bool parse_arp_cache;
} ConfigStruct;
extern ConfigStruct config;
#endif //CONFIG_H
-1
View File
@@ -35,7 +35,6 @@ logFileNamesStruct files = {
// Fixed size structs
countersStruct *counters = NULL;
overTimeData *overTime = NULL;
ConfigStruct config;
// The special memory handling routines have to be the last ones in this source file
// as we restore the original definition of the strdup, free, calloc, and realloc