path: root/include/conntrackd.h
diff options
authorArturo Borrero Gonzalez <>2016-11-04 11:37:02 +0100
committerPablo Neira Ayuso <>2016-11-09 00:26:04 +0100
commit631d92b68922e7da827115d62a55425ab667c89d (patch)
treed0fbbd62488d938312f682ab915a2b7e82cbdb39 /include/conntrackd.h
parentab81c355fa292b7d71253a4b8d3a3daf31a78ed1 (diff)
log: introduce a mechanism to know if log was initialized
This will allow to call dlog() function from all the points in the execution at runtime. If the log was not initialized, then we just fprintf and return. By now, we can't init the log engine earlier because we require config from the user, so there is a egg-chicken problem. This means that we can't log parsing messages to logfiles but only to stderr/stdout. Signed-off-by: Arturo Borrero Gonzalez <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/conntrackd.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/include/conntrackd.h b/include/conntrackd.h
index 8406c54..f995f4b 100644
--- a/include/conntrackd.h
+++ b/include/conntrackd.h
@@ -147,6 +147,7 @@ struct ct_general_state {
sigset_t block;
FILE *log;
FILE *stats_log;
+ int log_init;
struct local_server local;
struct ct_mode *mode;
struct ct_filter *us_filter;