diff --git a/src/FTL.h b/src/FTL.h index c4c9fa89..a807e14f 100644 --- a/src/FTL.h +++ b/src/FTL.h @@ -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; diff --git a/src/config.h b/src/config.h index 3dc69232..b333334a 100644 --- a/src/config.h +++ b/src/config.h @@ -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 diff --git a/src/memory.c b/src/memory.c index ee234501..a9730eb4 100644 --- a/src/memory.c +++ b/src/memory.c @@ -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