From 68e94a0780098e8b5e4772a270f91a60a370b8f6 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 14 Mar 2012 10:08:51 +0100 Subject: pingu_adm: new admin command for dumping active pings --- pingu_adm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pingu_adm.c') diff --git a/pingu_adm.c b/pingu_adm.c index 27f685f..d0ceb49 100644 --- a/pingu_adm.c +++ b/pingu_adm.c @@ -41,6 +41,7 @@ static struct { } adm_handler[] = { { "host-status", pingu_host_dump_status }, { "gateway-status", pingu_iface_dump_status }, + { "pings", pingu_iface_dump_pings }, { NULL, NULL } }; @@ -74,7 +75,7 @@ static void pingu_adm_recv_cb (struct ev_loop *loop, struct ev_io *w, for (i = 0; adm_handler[i].command != NULL; i++) { if (strncmp(conn->cmd, adm_handler[i].command, len) != 0) continue; - log_debug("Admin command: %s", conn->cmd); + log_debug("Admin command: %s (args='%s')", conn->cmd, args ? args : "NULL"); adm_handler[i].handler(conn->io.fd, args); conn->cmd[0] = '\0'; conn->num_read = 0; -- cgit v1.2.3