summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-01-14 14:29:58 +0000
committer/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-01-14 14:29:58 +0000
commit94aa8b70f2e8cf7cf664d7c0e86a9ebc287010ef (patch)
treede139fdbb9e973ef407e47325a2867543ebcb53d /src
parentc9de420557cdf546f09defbff3d5f682c01250aa (diff)
downloadconntrack-tools-94aa8b70f2e8cf7cf664d7c0e86a9ebc287010ef.tar.gz
conntrack-tools-94aa8b70f2e8cf7cf664d7c0e86a9ebc287010ef.zip
set up the configuration flags when defaulting
Diffstat (limited to 'src')
-rw-r--r--src/run.c1
-rw-r--r--src/sync-mode.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/run.c b/src/run.c
index 7d166bb..eab3ad2 100644
--- a/src/run.c
+++ b/src/run.c
@@ -92,6 +92,7 @@ int init(void)
else {
fprintf(stderr, "WARNING: No running mode specified. "
"Defaulting to statistics mode.\n");
+ CONFIG(flags) |= CTD_STATS_MODE;
STATE(mode) = &stats_mode;
}
diff --git a/src/sync-mode.c b/src/sync-mode.c
index 3bd6f59..16642c2 100644
--- a/src/sync-mode.c
+++ b/src/sync-mode.c
@@ -132,6 +132,7 @@ static int init_sync(void)
else {
fprintf(stderr, "WARNING: No synchronization mode specified. "
"Defaulting to FT-FW mode.\n");
+ CONFIG(flags) |= CTD_SYNC_FTFW;
STATE_SYNC(sync) = &ftfw;
}