summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2011-11-16 02:10:31 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2012-01-10 01:54:45 +0100
commit75a7cd3c722e1abca14fc375bec8ab30c34ab284 (patch)
tree34b33b726bbba606ec77b98340331e026ce781a3 /include
parent79ab299bfb20b7fc1982ca90d77d8b908b824fea (diff)
conntrackd: remove cache_data_get_object and replace by direct pointer
We now include one pointer to the object in the extra section. This is required to generalize this code for the expectation support. We consume 4-8 bytes extra, but we will not need more changes to support expectations which is a good idea.
Diffstat (limited to 'include')
-rw-r--r--include/cache.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/cache.h b/include/cache.h
index 65f7e3a..abebb97 100644
--- a/include/cache.h
+++ b/include/cache.h
@@ -147,7 +147,6 @@ void cache_del(struct cache *c, struct cache_object *obj);
struct cache_object *cache_find(struct cache *c, void *ptr, int *pos);
void cache_stats(const struct cache *c, int fd);
void cache_stats_extended(const struct cache *c, int fd);
-struct cache_object *cache_data_get_object(struct cache *c, void *data);
void *cache_get_extra(struct cache_object *);
void cache_iterate(struct cache *c, void *data, int (*iterate)(void *data1, void *data2));
void cache_iterate_limit(struct cache *c, void *data, uint32_t from, uint32_t steps, int (*iterate)(void *data1, void *data2));