diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-06-20 21:17:43 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-06-20 21:17:43 +0200 |
commit | b524c764aba149018fa83dec742c21dc8116838e (patch) | |
tree | be9d180f154ecd55c0c48baaab82c5e119482c6d /src/sync-mode.c | |
parent | 4cfc8533743a766db0b2c8ae27b7bba312eb3ec0 (diff) | |
download | conntrack-tools-b524c764aba149018fa83dec742c21dc8116838e.tar.gz conntrack-tools-b524c764aba149018fa83dec742c21dc8116838e.zip |
conntrackd: add `-s queue' to display queue statistics
This patch re-introduces `-s queue' but now it displays generic
queue statistics.
# conntrackd -s queue
active queue objects: 0
queue txqueue:
current elements: 0
maximum elements: 2147483647
not enough space errors: 0
queue rsqueue:
current elements: 72
maximum elements: 128
not enough space errors: 0
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/sync-mode.c')
-rw-r--r-- | src/sync-mode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sync-mode.c b/src/sync-mode.c index 308c08b..4d6956e 100644 --- a/src/sync-mode.c +++ b/src/sync-mode.c @@ -494,6 +494,9 @@ static int local_handler_sync(int fd, int type, void *data) multichannel_stats_extended(STATE_SYNC(channel), STATE_SYNC(interface), fd); break; + case STATS_QUEUE: + queue_stats_show(fd); + break; default: if (STATE_SYNC(sync)->local) ret = STATE_SYNC(sync)->local(fd, type, data); |