summaryrefslogtreecommitdiffstats
path: root/src/cache.c
diff options
context:
space:
mode:
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>2007-05-20 21:13:06 +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>2007-05-20 21:13:06 +0000
commit9f1b4b2d028129966f7e6f23cec6ac0712c2b1b6 (patch)
treed635d4e4ad7dac6918470676bf222f27d21f192e /src/cache.c
parent2932c6b8e6952ae84b221b854b43810c61e5c8fa (diff)
- introduce cache_iterate
- empty debug_ct function if DEBUG_CT is not set - revisit overrun handler: this is a hard battle, just try to do our best here, call Patrick :) - explicit warning message when netlink_buffer_max_growth is reached - fix silly bug in stats-mode when dumping in XML format - fix UDP handler for conntrack
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cache.c b/src/cache.c
index 32caee5..1b130c8 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -445,3 +445,12 @@ void cache_stats(struct cache *c, int fd)
unlock();
send(fd, buf, size, 0);
}
+
+void cache_iterate(struct cache *c,
+ void *data,
+ int (*iterate)(void *data1, void *data2))
+{
+ lock();
+ hashtable_iterate(c->h, data, iterate);
+ unlock();
+}