diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-01-25 17:53:05 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-01-25 17:53:05 +0100 |
commit | 50c09dec9ad0261d8fcc18d69b2c9ec74052955c (patch) | |
tree | 143d7e278fc3f1688c60663be04f06ae2e98700f /src/read_config_yy.y | |
parent | 1c9faf8c218bc7ff4617557383e4116f1adb11e5 (diff) | |
download | conntrack-tools-50c09dec9ad0261d8fcc18d69b2c9ec74052955c.tar.gz conntrack-tools-50c09dec9ad0261d8fcc18d69b2c9ec74052955c.zip |
src: add support for approximate timeout calculation during commit
During the commit phase, the entries in the external cache entries
are inserted in the kernel conntrack table. Currently, we use a
fixed timeout that is specified in the config file. With this patch,
if you don't specify the fixed timeout value via CommitTimeout, the
daemon calculates the real timeout value during the commit phase.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/read_config_yy.y')
-rw-r--r-- | src/read_config_yy.y | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/read_config_yy.y b/src/read_config_yy.y index d71829f..766d543 100644 --- a/src/read_config_yy.y +++ b/src/read_config_yy.y @@ -1141,10 +1141,6 @@ init_config(char *filename) if (CONFIG(cache_timeout) == 0) CONFIG(cache_timeout) = 180; - /* default to 180 seconds: committed entries */ - if (CONFIG(commit_timeout) == 0) - CONFIG(commit_timeout) = 180; - /* default to 15 seconds: purge kernel entries */ if (CONFIG(purge_timeout) == 0) CONFIG(purge_timeout) = 15; |