diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-01-17 18:03:53 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-01-17 18:03:53 +0100 |
commit | 7f5a53998abfc9b199b713244fe8baf0a7c2b2fe (patch) | |
tree | c44dc23a2767cc65bc8f62bfc56355b62d5215b9 /include | |
parent | 746f7031f4d1e3bccdd6db3c53835d8b85b73c90 (diff) | |
download | conntrack-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.h | 2 |
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; }; |