3 * $Id: globals.h,v 1.101 2001/01/12 00:37:18 wessels Exp $
6 * SQUID Web Proxy Cache http://www.squid-cache.org/
7 * ----------------------------------------------------------
9 * Squid is the result of efforts by numerous individuals from
10 * the Internet community; see the CONTRIBUTORS file for full
11 * details. Many organizations have provided support for Squid's
12 * development; see the SPONSORS file for full details. Squid is
13 * Copyrighted (C) 2001 by the Regents of the University of
14 * California; see the COPYRIGHT file for full details. Squid
15 * incorporates software developed and/or copyrighted by other
16 * sources; see the CREDITS file for full details.
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License as published by
20 * the Free Software Foundation; either version 2 of the License, or
21 * (at your option) any later version.
23 * This program is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 * GNU General Public License for more details.
28 * You should have received a copy of the GNU General Public License
29 * along with this program; if not, write to the Free Software
30 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
34 extern FILE *debug_log
; /* NULL */
35 extern SquidConfig Config
;
36 extern SquidConfig2 Config2
;
37 extern char *ConfigFile
; /* NULL */
38 extern char *IcpOpcodeStr
[];
39 extern char *dns_error_message
; /* NULL */
40 extern const char *log_tags
[];
41 extern char tmp_error_buf
[ERROR_BUF_SZ
];
42 extern char *volatile debug_options
; /* NULL */
43 extern char ThisCache
[SQUIDHOSTNAMELEN
<< 1];
44 extern char ThisCache2
[SQUIDHOSTNAMELEN
<< 1];
45 extern char config_input_line
[BUFSIZ
];
46 extern const char *AclMatchedName
; /* NULL */
47 extern const char *DefaultConfigFile
; /* DEFAULT_CONFIG_FILE */
48 extern const char *RequestMethodStr
[];
49 extern const char *ProtocolStr
[];
50 extern const char *cfg_filename
; /* NULL */
51 extern const char *const appname
; /* "squid" */
52 extern const char *const dash_str
; /* "-" */
53 extern const char *const localhost
; /* "127.0.0.1" */
54 extern const char *const null_string
; /* "" */
55 extern const char *const version_string
; /* SQUID_VERSION */
56 extern const char *const full_appname_string
; /* "Squid/" SQUID_VERSION */
57 extern const char *const w_space
; /* " \t\n\r" */
58 extern const char *fdTypeStr
[];
59 extern const char *hier_strings
[];
60 extern const char *memStatusStr
[];
61 extern const char *pingStatusStr
[];
62 extern const char *storeStatusStr
[];
63 extern const char *swapStatusStr
[];
64 extern dnsStatData DnsStats
;
65 extern fde
*fd_table
; /* NULL */
66 extern int Biggest_FD
; /* -1 */
67 extern int Number_FD
; /* 0 */
68 extern int Opening_FD
; /* 0 */
69 extern int HttpSockets
[MAXHTTPPORTS
];
70 extern int NDnsServersAlloc
; /* 0 */
71 extern int NHttpSockets
; /* 0 */
72 extern int RESERVED_FD
;
73 extern int Squid_MaxFD
; /* SQUID_MAXFD */
74 extern int config_lineno
; /* 0 */
75 extern int debugLevels
[MAX_DEBUG_SECTIONS
];
76 extern int do_mallinfo
; /* 0 */
77 extern int opt_reuseaddr
; /* 1 */
78 extern int icmp_sock
; /* -1 */
79 extern int neighbors_do_private_keys
; /* 1 */
80 extern int opt_accel_uses_host
; /* 0 */
81 extern int opt_catch_signals
; /* 1 */
82 extern int opt_debug_stderr
; /* -1 */
83 extern int opt_dns_tests
; /* 1 */
84 extern int opt_foreground_rebuild
; /* 0 */
85 extern int opt_forwarded_for
; /* 1 */
86 extern int opt_reload_hit_only
; /* 0 */
87 extern int opt_syslog_enable
; /* 0 */
88 extern int opt_udp_hit_obj
; /* 0 */
89 extern int opt_create_swap_dirs
; /* 0 */
90 extern int opt_store_doublecheck
; /* 0 */
91 extern int syslog_enable
; /* 0 */
92 extern int theInIcpConnection
; /* -1 */
93 extern int theOutIcpConnection
; /* -1 */
94 extern int DnsSocket
; /* -1 */
96 extern int theInSnmpConnection
; /* -1 */
97 extern int theOutSnmpConnection
; /* -1 */
98 extern char *snmp_agentinfo
;
100 extern int vhost_mode
; /* 0 */
101 extern int vport_mode
; /* 0 */
102 extern int n_disk_objects
; /* 0 */
103 extern iostats IOStats
;
104 extern struct _acl_deny_info_list
*DenyInfoList
; /* NULL */
105 extern struct in_addr any_addr
;
106 extern struct in_addr local_addr
;
107 extern struct in_addr no_addr
;
108 extern struct in_addr theOutICPAddr
;
109 extern struct in_addr theOutSNMPAddr
;
110 extern struct timeval current_time
;
111 extern struct timeval squid_start
;
112 extern time_t squid_curtime
; /* 0 */
113 extern int shutting_down
; /* 0 */
114 extern int reconfiguring
; /* 0 */
115 extern int store_dirs_rebuilding
; /* 1 */
116 extern int store_swap_size
; /* 0 */
117 extern unsigned long store_mem_size
; /* 0 */
118 extern time_t hit_only_mode_until
; /* 0 */
119 extern StatCounters statCounter
;
120 extern char *err_type_str
[];
121 extern char *icp_opcode_str
[];
122 extern char *swap_log_op_str
[];
123 extern char *lookup_t_str
[];
124 extern double request_failure_ratio
; /* 0.0 */
125 extern double current_dtime
;
126 extern int store_hash_buckets
; /* 0 */
127 extern hash_table
*store_table
; /* NULL */
128 extern dlink_list ClientActiveRequests
;
129 extern const String StringNull
; /* { 0, 0, NULL } */
130 extern const MemBuf MemBufNull
; /* MemBufNULL */
131 extern int hot_obj_count
; /* 0 */
132 extern int _db_level
;
133 extern const int CacheDigestHashFuncCount
; /* 4 */
134 extern CacheDigest
*store_digest
; /* NULL */
135 extern const char *StoreDigestFileName
; /* "store_digest" */
136 extern const char *StoreDigestMimeStr
; /* "application/cache-digest" */
137 #if USE_CACHE_DIGESTS
138 extern const Version CacheDigestVer
; /* { 5, 3 } */
140 extern const char *MultipartMsgBoundaryStr
; /* "Unique-Squid-Separator" */
141 extern icpUdpData
*IcpQueueHead
; /* NULL */
143 extern int refresh_nocache_hack
; /* 0 */
145 extern request_flags null_request_flags
;
146 extern int store_open_disk_fd
; /* 0 */
147 extern const char *SwapDirType
[];
148 extern authscheme_entry_t
*authscheme_list
; /* NULL */
149 extern storefs_entry_t
*storefs_list
; /* NULL */
150 extern storerepl_entry_t
*storerepl_list
; /* NULL */
151 extern int store_swap_low
; /* 0 */
152 extern int store_swap_high
; /* 0 */
153 extern int store_pages_max
; /* 0 */
154 extern ssize_t store_maxobjsize
; /* -1 */
155 extern RemovalPolicy
*mem_policy
;
156 extern hash_table
*proxy_auth_username_cache
; /* NULL */