]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
added new options to cachemgr
authorwessels <>
Mon, 22 Jul 1996 23:20:15 +0000 (23:20 +0000)
committerwessels <>
Mon, 22 Jul 1996 23:20:15 +0000 (23:20 +0000)
src/cachemgr.cc

index 8e4d9706046e0976452b4a7c092e950c9b623663..c3986145882a8c731381ede57cf5cb581b96e8b1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: cachemgr.cc,v 1.11 1996/07/09 22:58:06 wessels Exp $
+ * $Id: cachemgr.cc,v 1.12 1996/07/22 17:20:15 wessels Exp $
  *
  * DEBUG: Section 0     CGI Cache Manager
  * AUTHOR: Harvest Derived
@@ -214,7 +214,9 @@ typedef enum {
     SERVER,
     LOG,
     PARAM,
-    STATS_G,
+    STATS_I,
+    STATS_F,
+    STATS_D,
     STATS_O,
     STATS_VM,
     STATS_U,
@@ -236,7 +238,9 @@ static char *op_cmds[] =
     "server_list",
     "log",
     "parameter",
-    "stats/general",
+    "stats/ipcache",
+    "stats/fqdncache",
+    "stats/dns",
     "stats/objects",
     "stats/vm_objects",
     "stats/utilization",
@@ -314,7 +318,9 @@ void noargs_html()
     printf("<OPTION VALUE=\"stats/objects\">Objects\n");
     printf("<OPTION VALUE=\"stats/vm_objects\">VM_Objects\n");
     printf("<OPTION VALUE=\"server_list\">Cache Server List\n");
-    printf("<OPTION VALUE=\"stats/general\">IP Cache Contents\n");
+    printf("<OPTION VALUE=\"stats/ipcache\">IP Cache Contents\n");
+    printf("<OPTION VALUE=\"stats/fqdncache\">FQDN Cache Contents\n");
+    printf("<OPTION VALUE=\"stats/dns\">DNS Server Statistics\n");
     printf("<OPTION VALUE=\"shutdown\">Shutdown Cache (password required)\n");
     printf("<OPTION VALUE=\"refresh\">Refresh Object (URL required)\n");
 #ifdef REMOVE_OBJECT
@@ -593,9 +599,15 @@ int main(int argc, char *argv[])
     } else if (!strcmp(operation, "parameter") ||
        !strcmp(operation, "Cache Parameters")) {
        op = PARAM;
-    } else if (!strcmp(operation, "stats/general") ||
-       !strcmp(operation, "General Statistics")) {
-       op = STATS_G;
+    } else if (!strcmp(operation, "stats/ipcache") ||
+       !strcmp(operation, "IP Cache")) {
+       op = STATS_I;
+    } else if (!strcmp(operation, "stats/fqdncache") ||
+       !strcmp(operation, "FQDN Cache")) {
+       op = STATS_F;
+    } else if (!strcmp(operation, "stats/dns") ||
+       !strcmp(operation, "DNS Server Stats")) {
+       op = STATS_D;
     } else if (!strcmp(operation, "stats/vm_objects") ||
        !strcmp(operation, "VM_Objects")) {
        op = STATS_VM;
@@ -633,7 +645,9 @@ int main(int argc, char *argv[])
     case SERVER:
     case LOG:
     case PARAM:
-    case STATS_G:
+    case STATS_I:
+    case STATS_F:
+    case STATS_D:
     case STATS_O:
     case STATS_VM:
     case STATS_U:
@@ -684,7 +698,9 @@ int main(int argc, char *argv[])
     printf("<OPTION VALUE=\"stats/objects\">Objects\n");
     printf("<OPTION VALUE=\"stats/vm_objects\">VM_Objects\n");
     printf("<OPTION VALUE=\"server_list\">Cache Server List\n");
-    printf("<OPTION VALUE=\"stats/general\">IP Cache Contents\n");
+    printf("<OPTION VALUE=\"stats/ipcache\">IP Cache Contents\n");
+    printf("<OPTION VALUE=\"stats/fqdncache\">FQDN Cache Contents\n");
+    printf("<OPTION VALUE=\"stats/dns\">DNS Server Statistics\n");
     printf("</SELECT>");
     printf("<INPUT TYPE=\"hidden\" NAME=\"host\" VALUE=\"%s\">\n", hostname);
     printf("<INPUT TYPE=\"hidden\" NAME=\"port\" VALUE=\"%d\">\n", portnum);
@@ -722,7 +738,9 @@ int main(int argc, char *argv[])
     case CACHED:
     case SERVER:
     case LOG:
-    case STATS_G:
+    case STATS_I:
+    case STATS_F:
+    case STATS_D:
     case STATS_O:
     case STATS_VM:
     case STATS_IO:
@@ -789,7 +807,9 @@ int main(int argc, char *argv[])
                case CACHED:
                case SERVER:
                case LOG:
-               case STATS_G:
+               case STATS_I:
+               case STATS_F:
+               case STATS_D:
                case STATS_IO:
                case STATS_HDRS:
                case STATS_FDS: