summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-01-17 18:03:53 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2009-01-17 18:03:53 +0100
commit7f5a53998abfc9b199b713244fe8baf0a7c2b2fe (patch)
treec44dc23a2767cc65bc8f62bfc56355b62d5215b9 /include
parent746f7031f4d1e3bccdd6db3c53835d8b85b73c90 (diff)
downloadconntrack-tools-7f5a53998abfc9b199b713244fe8baf0a7c2b2fe.tar.gz
conntrack-tools-7f5a53998abfc9b199b713244fe8baf0a7c2b2fe.zip
cache: add objects statistics
This patch adds the object counter to `conntrackd -s cache'. This is useful to detect object leaks in runtime. This patch also changes the layout of the output to fit the display in less than 24 lines (assuming 24x80 terminal). Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cache.h b/include/cache.h
index 03b6822..697a64b 100644
--- a/include/cache.h
+++ b/include/cache.h
@@ -87,6 +87,8 @@ struct cache {
uint32_t commit_fail;
uint32_t flush;
+
+ uint32_t objects;
} stats;
};