From 7a817e883baad98069d31bc846383f18bbfca33e Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 14 Jan 2009 14:29:48 +0100 Subject: 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 --- src/run.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- cgit v1.2.3