diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-01-25 17:53:02 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-01-25 17:53:02 +0100 |
commit | 1c9faf8c218bc7ff4617557383e4116f1adb11e5 (patch) | |
tree | f189019456f3399d3a47d3471f406956381c65b7 /src/stats-mode.c | |
parent | eec8fdf57f34fe0d80b884ad0e376ed24c63ffcc (diff) | |
download | conntrack-tools-1c9faf8c218bc7ff4617557383e4116f1adb11e5.tar.gz conntrack-tools-1c9faf8c218bc7ff4617557383e4116f1adb11e5.zip |
cache: move lifetime feature to main cache code
The lifetime feature is used by all working modes, it is useful to
know how long it has been an entry living in the cache. This patch
moves the lifetime feature to the main caching code.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/stats-mode.c')
-rw-r--r-- | src/stats-mode.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/stats-mode.c b/src/stats-mode.c index b742c0c..226a6b8 100644 --- a/src/stats-mode.c +++ b/src/stats-mode.c @@ -37,9 +37,7 @@ static int init_stats(void) } memset(state.stats, 0, sizeof(struct ct_stats_state)); - STATE_STATS(cache) = cache_create("stats", - LIFETIME, - NULL); + STATE_STATS(cache) = cache_create("stats", NO_FEATURES, NULL); if (!STATE_STATS(cache)) { dlog(LOG_ERR, "can't allocate memory for the " "external cache"); |