X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=apps%2Fsilcd%2Fsilcd.c;h=10222098a6d152a058fae57afb43ebda638211b4;hp=86d75b553536e0c8aa2cfe215003ec570ac1bfd5;hb=816a5b080c797c0db47b7b274a85646343c3466e;hpb=c257b555225193e54d85daf541d29578b3c93882 diff --git a/apps/silcd/silcd.c b/apps/silcd/silcd.c index 86d75b55..10222098 100644 --- a/apps/silcd/silcd.c +++ b/apps/silcd/silcd.c @@ -4,12 +4,11 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2003 Pekka Riikonen + Copyright (C) 1997 - 2005 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -302,6 +301,8 @@ SILC_TASK_CALLBACK(dump_stats) STAT_OUTPUT(" Authentication failures : %d", silcd->stat.auth_failures); STAT_OUTPUT(" Packets sent : %d", silcd->stat.packets_sent); STAT_OUTPUT(" Packets received : %d", silcd->stat.packets_received); + STAT_OUTPUT(" Commands sent : %d", silcd->stat.commands_sent); + STAT_OUTPUT(" Commands received : %d", silcd->stat.commands_received); STAT_OUTPUT(" Connections : %d", silcd->stat.conn_num); #undef STAT_OUTPUT @@ -398,7 +399,7 @@ SILC_TASK_CALLBACK(dump_stats) (unsigned char *)"N/A", client_entry->id ? silc_id_render(client_entry->id, SILC_ID_CLIENT) : "N/A", client_entry->data.status, server_entry ? - server_entry->server_name ? server_entry->server_name : + server_entry->server_name ? server_entry->server_name : "N/A" : "local"); if (!silc_idcache_list_next(list, &id_cache)) break; @@ -419,7 +420,7 @@ SILC_TASK_CALLBACK(dump_stats) (unsigned char *)"N/A", client_entry->id ? silc_id_render(client_entry->id, SILC_ID_CLIENT) : "N/A", client_entry->data.status, server_entry ? - server_entry->server_name ? server_entry->server_name : + server_entry->server_name ? server_entry->server_name : "N/A" : "local"); if (!silc_idcache_list_next(list, &id_cache)) break;