Some more SIGUSR1 dumps
authorPekka Riikonen <priikone@silcnet.org>
Thu, 16 Jan 2003 09:36:07 +0000 (09:36 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Thu, 16 Jan 2003 09:36:07 +0000 (09:36 +0000)
apps/silcd/silcd.c

index 33a5043cc7ca12475dc117c538a5930024e62773..7327758f017b61e339e7dc37b237f5e88df26cea 100644 (file)
@@ -306,6 +306,20 @@ SILC_TASK_CALLBACK(dump_stats)
 #undef STAT_OUTPUT
 
 #ifdef SILC_DEBUG
+  /* Dump internal flags */
+  fprintf(fdd, "\nDumping internal flags\n");
+  fprintf(fdd, "  server_type            : %d\n", silcd->server_type);
+  fprintf(fdd, "  standalone             : %d\n", silcd->standalone);
+  fprintf(fdd, "  listenning             : %d\n", silcd->listenning);
+  fprintf(fdd, "  background             : %d\n", silcd->background);
+  fprintf(fdd, "  backup_router          : %d\n", silcd->backup_router);
+  fprintf(fdd, "  backup_primary         : %d\n", silcd->backup_primary);
+  fprintf(fdd, "  backup_noswitch        : %d\n", silcd->backup_noswitch);
+  fprintf(fdd, "  wait_backup            : %d\n", silcd->wait_backup);
+  if (silcd->router)
+    fprintf(fdd, "  primary router         : %s\n", 
+      silcd->router->server_name ? silcd->router->server_name : "");
+
   /* Dump lists */
   {
     SilcIDCacheList list = NULL;