summaryrefslogtreecommitdiffstats
path: root/src/sync-ftfw.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-01-17 20:33:30 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2009-01-17 20:33:30 +0100
commitd05f05e21be0cca59ca67ac19ef2b73c467b8250 (patch)
tree910880ccc795d15c9a59e07aad00ac40b64eb12f /src/sync-ftfw.c
parenta63f5181807803ffdd879edca9fd4d73c4be35f3 (diff)
src: add `-s queue' and change `-v' behaviour
This patch moves the existing `-v' behaviour to `-s queue' where it really belongs. The `-v' option is now left to display the version which is the common use of it. # conntrackd -v Connection tracking userspace daemon v0.9.9. Licensed under GPLv2. (C) 2006-2009 Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/sync-ftfw.c')
-rw-r--r--src/sync-ftfw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sync-ftfw.c b/src/sync-ftfw.c
index 493c15f..fd6c350 100644
--- a/src/sync-ftfw.c
+++ b/src/sync-ftfw.c
@@ -204,12 +204,12 @@ static int rs_queue_dump(struct queue_node *n, const void *data2)
return 0;
}
-static void debug_rs_dump(int fd)
+static void ftfw_local_queue(int fd)
{
char buf[512];
int size;
- size = sprintf(buf, "resent queue (len=%u):\n", queue_len(rs_queue));
+ size = sprintf(buf, "resent queue (len=%u)\n", queue_len(rs_queue));
send(fd, buf, size, 0);
queue_iterate(rs_queue, &fd, rs_queue_dump);
}
@@ -227,8 +227,8 @@ static int ftfw_local(int fd, int type, void *data)
dlog(LOG_NOTICE, "sending bulk update");
cache_iterate(STATE_SYNC(internal), NULL, do_cache_to_tx);
break;
- case DEBUG_INFO:
- debug_rs_dump(fd);
+ case STATS_QUEUE:
+ ftfw_local_queue(fd);
break;
default:
ret = 0;