]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
misc fixes
authorwessels <>
Mon, 25 Aug 1997 11:29:54 +0000 (11:29 +0000)
committerwessels <>
Mon, 25 Aug 1997 11:29:54 +0000 (11:29 +0000)
errors/English/ERR_DNS_FAIL
src/cache_cf.cc
src/cachemgr.cc
src/cf.data.pre
src/mk-globals-c.pl
src/pinger.cc
src/store.cc

index 5a07ef0141859c48e65a80feed8a85bc7787fcf3..c0f8c60ddcbd2c5e954336081a2c55836fe1f518 100644 (file)
@@ -1,24 +1,24 @@
 <HTML><HEAD>
 <TITLE>ERROR: The requested URL could not be retrieved</TITLE>
 </HEAD><BODY>
-<H1>ERROR</H1>
 <H2>The requested URL could not be retrieved</H2>
 <HR>
 <P>
 While trying to retrieve the URL:
-<A HREF="%u">%u</A>
+<A HREF="%U">%U</A>
 <P>
 The following error was encountered:
-<UL>
-<LI>
-<STRONG>
-@SHORT_DESCRIPTION@
-</STRONG>
+<BLOCKQUOTE>
+Unable to determine IP address from host name for
+<I>%H</I>
+</BLOCKQUOTE>
 </UL>
 
 <P>
-The system returned:
-<PRE><I>    @XSTRERROR@</I></PRE>
+The dnsserver returned:
+<BLOCKQUOTE>
+%z
+</BLOCKQUOTE>
 
 <P>
 This means that:
index 51e85bce6efd59fcbbcc094411f6f834a321a4d7..5b155166e8125fec7bd962a55baf0a72945bb4fb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: cache_cf.cc,v 1.220 1997/08/25 03:52:16 wessels Exp $
+ * $Id: cache_cf.cc,v 1.221 1997/08/25 05:29:55 wessels Exp $
  *
  * DEBUG: section 3     Configuration File Parsing
  * AUTHOR: Harvest Derived
@@ -172,6 +172,8 @@ parseConfigFile(const char *file_name)
     }
 
     /* Sanity checks */
+    if (Config.cacheSwap.swapDirs == NULL)
+       fatal("No cache_dir's specified in config file");
     if (Config.Swap.maxSize < (Config.Mem.maxSize >> 10)) {
        printf("WARNING: cache_swap (%d kbytes) is less than cache_mem (%d bytes).\n", Config.Swap.maxSize, Config.Mem.maxSize);
        printf("         This will cause serious problems with your cache!!!\n");
@@ -1127,3 +1129,4 @@ configFreeMemory(void)
 {
     free_all();
 }
+
index be0ac59237c54c0fc73e49f650e3de86ace868ca..9e319080dbafe17db2bd6546491d2034eccdaf2f 100644 (file)
@@ -1,7 +1,7 @@
 
 
 /*
- * $Id: cachemgr.cc,v 1.56 1997/07/16 20:31:58 wessels Exp $
+ * $Id: cachemgr.cc,v 1.57 1997/08/25 05:29:55 wessels Exp $
  *
  * DEBUG: section 0     CGI Cache Manager
  * AUTHOR: Harvest Derived
@@ -249,17 +249,17 @@ static const char *const op_cmds[] =
     "client_list",
     "log",
     "parameter",
-    "stats/ipcache",
-    "stats/fqdncache",
-    "stats/dns",
-    "stats/redirector",
-    "stats/objects",
-    "stats/vm_objects",
-    "stats/utilization",
-    "stats/io",
-    "stats/reply_headers",
-    "stats/filedescriptors",
-    "stats/netdb",
+    "ipcache",
+    "fqdncache",
+    "dns",
+    "redirector",
+    "objects",
+    "vm_objects",
+    "utilization",
+    "io",
+    "reply_headers",
+    "filedescriptors",
+    "netdb",
     "shutdown",
     "refresh",
 #ifdef REMOVE_OBJECT
index d0b8b5bdf0933b574c9bce10ac8e04a2028bb9e2..0ea1f239652d0dc6c93e20182a560270449d7670 100644 (file)
@@ -40,7 +40,7 @@ DOC_START
        understand the difference between an ICP _query_ and an ICP
        _reply_.  This option is to be set only if you want to RECEIVE
        multicast queries.  Do NOT set this option to SEND multicast
-       ICP (use cache_host for that).  ICP replies are always sent via
+       ICP (use cache_peer for that).  ICP replies are always sent via
        unicast, so this option does not affect whether or not you will
        receive replies from multicast group members.
 
@@ -122,9 +122,9 @@ DOC_START
        #                                        proxy  icp
        #          hostname             type     port   port  options
        #          -------------------- -------- ----- -----  -----------
-       cache_host bigserver.usc.edu    parent    3128  3130  [proxy-only]
-       cache_host littleguy1.usc.edu   sibling   3128  3130  [proxy-only]
-       cache_host littleguy1.usc.edu   sibling   3128  3130  [proxy-only]
+       cache_peer bigserver.usc.edu    parent    3128  3130  [proxy-only]
+       cache_peer littleguy1.usc.edu   sibling   3128  3130  [proxy-only]
+       cache_peer littleguy1.usc.edu   sibling   3128  3130  [proxy-only]
 
              type:  either 'parent', 'sibling', or 'multicast'.
 
@@ -183,7 +183,7 @@ DOC_START
 
        NOTE: non-ICP neighbors must be specified as 'parent'.
 
-cache_host hostname type 3128 3130
+cache_peer hostname type 3128 3130
 DOC_END
 
 
@@ -229,13 +229,13 @@ DOC_START
 
        Modifying the neighbor type for specific domains is now
        possible.  You can treat some domains differently than the the
-       default neighbor type specified on the 'cache_host' line.
+       default neighbor type specified on the 'cache_peer' line.
        Normally it should only be necessary to list domains which
        should be treated differently because the default neighbor type
        applies for hostnames which do not match domains listed here.
 
 EXAMPLE:
-       cache_host  parent cache.foo.org 3128 3130
+       cache_peer  parent cache.foo.org 3128 3130
        neighbor_type_domain cache.foo.org sibling .com .net
        neighbor_type_domain cache.foo.org sibling .au .de
 DOC_END
@@ -499,7 +499,7 @@ DOC_START
        You can specify multiple cache_dir lines to spread the
        cache among different disk partitions.
 
-cache_dir /usr/local/squid/cache 1000 256 16
+cache_dir /usr/local/squid/cache 1000 16 256
 DOC_END
 
 
@@ -787,7 +787,7 @@ DOC_END
 
 
 NAME: pinger_program
-TYPE: pathname_stat
+TYPE: string
 DEFAULT: @DEFAULT_PINGER@
 LOC: Config.Program.pinger
 DOC_START
@@ -1274,13 +1274,13 @@ DOC_END
 
 NAME: cache_effective_user
 TYPE: string
-DEFAULT: none
+DEFAULT: nobody
 LOC: Config.effectiveUser
 DOC_NONE
 
 NAME: cache_effective_group
 TYPE: string
-DEFAULT: none
+DEFAULT: nogroup
 LOC: Config.effectiveGroup
 DOC_START
        If the cache is run as root, it will change its effective/real
index 5cc2a1a13e6a902a95c406f87b6f9f9540fe73f2..70f626bdbe50cd4c2c83fc2f67b53f36c401f5ef 100755 (executable)
@@ -10,7 +10,7 @@ while (<>) {
        die unless (/^extern\s+([^;]+);(.*)$/);
        $var = $1;
        $comments = $2;
-       if ($comments =~ m+/\*\s*(.*)\s*\*/+) {
+       if ($comments =~ m+/\*\s*(\S*)\s*\*/+) {
                $init = $1;
        }
        print $var;
index 53b08584fcd564ae035875db3b339ff5c7539b6a..58bdd33a1ae2748cab540f5aa2ef3eb5e12a86d7 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: pinger.cc,v 1.25 1997/07/14 19:24:39 wessels Exp $
+ * $Id: pinger.cc,v 1.26 1997/08/25 05:29:57 wessels Exp $
  *
  * DEBUG: section 42    ICMP Pinger program
  * AUTHOR: Duane Wessels
 
 #include "squid.h"
 
-/* Junk so we can link with debug.o */
-struct timeval current_time;
-time_t squid_curtime;
-SquidConfig Config;
-
 #if USE_ICMP
 
 #include <netinet/in_systm.h>
@@ -77,7 +72,6 @@ typedef struct {
     char payload[MAX_PAYLOAD];
 } icmpEchoData;
 
-int icmp_sock = -1;
 int icmp_ident = -1;
 int icmp_pkts_sent = 0;
 
@@ -329,7 +323,6 @@ main(int argc, char *argv[])
     const char *debug_args = "ALL,1";
     char *t;
     time_t last_check_time = 0;
-    appname = xstrdup("pinger");
 
     if ((t = getenv("SQUID_DEBUG")))
        debug_args = xstrdup(t);
index 3a2a5f9ca379bf1bf8092e3612831467af765638..51b1bbc546b4296c0c25b19b07ec5f87f240749d 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store.cc,v 1.281 1997/08/25 02:17:49 wessels Exp $
+ * $Id: store.cc,v 1.282 1997/08/25 05:29:58 wessels Exp $
  *
  * DEBUG: section 20    Storeage Manager
  * AUTHOR: Harvest Derived
@@ -2290,8 +2290,6 @@ storeInit(void)
        storelog_fd = file_open(fname, O_WRONLY | O_CREAT, NULL, NULL);
     if (storelog_fd < 0)
        debug(20, 1) ("Store logging disabled\n");
-    if (Config.cacheSwap.n_configured < 1)
-       fatal("No cache_dir's specified in config file");
     storeVerifySwapDirs();
     storeDirOpenSwapLogs();
     if (!opt_zap_disk_store)