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 /include | |
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 'include')
-rw-r--r-- | include/cache.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/cache.h b/include/cache.h index 5e96dd3..1fd3881 100644 --- a/include/cache.h +++ b/include/cache.h @@ -12,10 +12,7 @@ enum { TIMER_FEATURE = 0, TIMER = (1 << TIMER_FEATURE), - LIFETIME_FEATURE = 2, - LIFETIME = (1 << LIFETIME_FEATURE), - - WRITE_THROUGH_FEATURE = 3, + WRITE_THROUGH_FEATURE = 1, WRITE_THROUGH = (1 << WRITE_THROUGH_FEATURE), __CACHE_MAX_FEATURE @@ -36,6 +33,7 @@ struct cache_object { struct cache *cache; int status; int refcnt; + long lifetime; char data[0]; }; |