diff options
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-05 14:13:11 +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-05 14:13:11 +0000 |
commit | 7763eff37cd8ab4b1af0021c18f1ff86e1f19acd (patch) | |
tree | 2f9e7d0c22933a3eec15723c24c19da9cc3099e5 /src/sync-mode.c | |
parent | 70d1f229a46565c48cfaa6412e865ddd4bc5c585 (diff) | |
download | conntrack-tools-7763eff37cd8ab4b1af0021c18f1ff86e1f19acd.tar.gz conntrack-tools-7763eff37cd8ab4b1af0021c18f1ff86e1f19acd.zip |
obsolete `-S' option: Use information provided by the config file
Diffstat (limited to 'src/sync-mode.c')
-rw-r--r-- | src/sync-mode.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/sync-mode.c b/src/sync-mode.c index 7c42c78..d54e169 100644 --- a/src/sync-mode.c +++ b/src/sync-mode.c @@ -126,11 +126,15 @@ static int init_sync(void) } memset(state.sync, 0, sizeof(struct ct_sync_state)); - if (CONFIG(flags) & SYNC_MODE_FTFW) + if (CONFIG(flags) & CTD_SYNC_FTFW) STATE_SYNC(sync) = &ftfw; - else - /* default to ftfw mode */ + else if (CONFIG(flags) & CTD_SYNC_ALARM) + STATE_SYNC(sync) = &alarm; + else { + fprintf(stderr, "WARNING: No synchronization mode specified. " + "Defaulting to FT-FW mode.\n"); STATE_SYNC(sync) = &ftfw; + } if (STATE_SYNC(sync)->init) STATE_SYNC(sync)->init(); |