summaryrefslogtreecommitdiff
path: root/src/run.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-01-14 14:29:48 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2009-01-14 14:29:48 +0100
commit7a817e883baad98069d31bc846383f18bbfca33e (patch)
tree497e04d0f398ee81c8e21eb5e97b833f6c35b0d2 /src/run.c
parentb176d7178aa929c4644bdfd0752cf531384447c9 (diff)
downloadconntrack-tools-7a817e883baad98069d31bc846383f18bbfca33e.tar.gz
conntrack-tools-7a817e883baad98069d31bc846383f18bbfca33e.zip
run: show current netlink buffer size in `-s runtime'
This patch shows the current netlink buffer size via `-s runtime'. # conntrackd -s ru ... current buffer size (in bytes): 204800 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/run.c')
-rw-r--r--src/run.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/run.c b/src/run.c
index 5b01dc7..7958665 100644
--- a/src/run.c
+++ b/src/run.c
@@ -140,7 +140,8 @@ static void dump_stats_runtime(int fd)
"\tdump unknown type:\t\t%12u\n"
"\tnetlink overrun:\t\t%12u\n"
"\tflush kernel table:\t\t%12u\n"
- "\tresync with kernel table:\t%12u\n\n"
+ "\tresync with kernel table:\t%12u\n"
+ "\tcurrent buffer size (in bytes):\t%12u\n\n"
"runtime stats:\n"
"\tchild process failed:\t\t%12u\n"
"\t\tchild process segfault:\t%12u\n"
@@ -158,6 +159,7 @@ static void dump_stats_runtime(int fd)
STATE(stats).nl_overrun,
STATE(stats).nl_kernel_table_flush,
STATE(stats).nl_kernel_table_resync,
+ CONFIG(netlink_buffer_size),
STATE(stats).child_process_failed,
STATE(stats).child_process_error_segfault,
STATE(stats).child_process_error_term,