diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-12-21 19:47:02 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-12-21 19:47:02 +0100 |
commit | 036a0a65c6a3ba95cff48035a25e0bdba6aa0452 (patch) | |
tree | 008c4c4f641457dddb126484d84025b507cd7a63 /src/stats-mode.c | |
parent | 7b3f57d5007dd2cf4127c2c3a9a7cd0f64d5d6e9 (diff) | |
download | conntrack-tools-036a0a65c6a3ba95cff48035a25e0bdba6aa0452.tar.gz conntrack-tools-036a0a65c6a3ba95cff48035a25e0bdba6aa0452.zip |
src: add cache statistics via `-s cache'
This patch adds cache statistics that you can check via
`conntrackd -s cache'. This information is useful for
trouble-shooting.
This patch replaces several log messages that can be triggered in
runtime. The idea behind this patch is to avoid log message flooding
under errors.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/stats-mode.c')
-rw-r--r-- | src/stats-mode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stats-mode.c b/src/stats-mode.c index ad28008..d340b0d 100644 --- a/src/stats-mode.c +++ b/src/stats-mode.c @@ -79,6 +79,9 @@ static int local_handler_stats(int fd, int type, void *data) cache_stats(STATE_STATS(cache), fd); dump_traffic_stats(fd); break; + case STATS_CACHE: + cache_stats_extended(STATE_STATS(cache), fd); + break; default: ret = 0; break; |