diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-14 10:08:51 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-14 10:08:51 +0100 |
commit | 68e94a0780098e8b5e4772a270f91a60a370b8f6 (patch) | |
tree | 6bf904cfcf271ad9f8aa207d6cf5e171f8761d20 /pingu_adm.c | |
parent | 2f5cbff07d2872f78c92efe854385d083c4dfbca (diff) | |
download | pingu-68e94a0780098e8b5e4772a270f91a60a370b8f6.tar.bz2 pingu-68e94a0780098e8b5e4772a270f91a60a370b8f6.tar.xz |
pingu_adm: new admin command for dumping active pings
Diffstat (limited to 'pingu_adm.c')
-rw-r--r-- | pingu_adm.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |