]> git.ipfire.org Git - thirdparty/squid.git/blame - src/globals.h
merge changes from SQUID_2_3 branch
[thirdparty/squid.git] / src / globals.h
CommitLineData
9fb13bb6 1
c5ddf51c 2/*
7e3ce7b9 3 * $Id: globals.h,v 1.86 1999/12/30 17:36:35 wessels Exp $
9cef6668 4 *
5 *
6 * SQUID Internet Object Cache http://squid.nlanr.net/Squid/
7 * ----------------------------------------------------------
8 *
9 * Squid is the result of efforts by numerous individuals from the
10 * Internet community. Development is led by Duane Wessels of the
11 * National Laboratory for Applied Network Research and funded by the
12 * National Science Foundation. Squid is Copyrighted (C) 1998 by
13 * Duane Wessels and the University of California San Diego. Please
14 * see the COPYRIGHT file for full details. Squid incorporates
15 * software developed and/or copyrighted by other sources. Please see
16 * the CREDITS file for full details.
17 *
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.
22 *
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.
27 *
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.
31 *
fc084a16 32 */
a8258824 33
a47b9029 34extern FILE *debug_log; /* NULL */
35extern FILE *cache_useragent_log; /* NULL */
a8258824 36extern SquidConfig Config;
37extern SquidConfig2 Config2;
a8258824 38extern char *ConfigFile; /* NULL */
39extern char *IcpOpcodeStr[];
a47b9029 40extern char *dns_error_message; /* NULL */
9b312a19 41extern const char *log_tags[];
2027ec3b 42extern char tmp_error_buf[ERROR_BUF_SZ];
a47b9029 43extern char *volatile debug_options; /* NULL */
a8258824 44extern char ThisCache[SQUIDHOSTNAMELEN << 1];
38a6c74e 45extern char ThisCache2[SQUIDHOSTNAMELEN << 1];
a8258824 46extern char config_input_line[BUFSIZ];
a47b9029 47extern const char *AclMatchedName; /* NULL */
a8258824 48extern const char *DefaultConfigFile; /* DEFAULT_CONFIG_FILE */
a8258824 49extern const char *RequestMethodStr[];
70cd3e32 50extern const char *ProtocolStr[];
a8258824 51extern const char *cfg_filename; /* NULL */
a47b9029 52extern const char *const appname; /* "squid" */
a47b9029 53extern const char *const dash_str; /* "-" */
54extern const char *const localhost; /* "127.0.0.1" */
55extern const char *const null_string; /* "" */
a47b9029 56extern const char *const version_string; /* SQUID_VERSION */
2ac76861 57extern const char *const full_appname_string; /* "Squid/" SQUID_VERSION */
a47b9029 58extern const char *const w_space; /* " \t\n\r" */
22f5d1ca 59extern const char *fdTypeStr[];
a8258824 60extern const char *hier_strings[];
61extern const char *memStatusStr[];
62extern const char *pingStatusStr[];
63extern const char *storeStatusStr[];
64extern const char *swapStatusStr[];
65extern dnsStatData DnsStats;
a47b9029 66extern fde *fd_table; /* NULL */
67extern int Biggest_FD; /* -1 */
88738790 68extern int Number_FD; /* 0 */
b6a2f15e 69extern int Opening_FD; /* 0 */
a8258824 70extern int HttpSockets[MAXHTTPPORTS];
71extern int NDnsServersAlloc; /* 0 */
a47b9029 72extern int NHttpSockets; /* 0 */
a8258824 73extern int RESERVED_FD;
a47b9029 74extern int Squid_MaxFD; /* SQUID_MAXFD */
a8258824 75extern int config_lineno; /* 0 */
a8258824 76extern int debugLevels[MAX_DEBUG_SECTIONS];
a47b9029 77extern int do_mallinfo; /* 0 */
3b4be6a6 78extern int opt_reuseaddr; /* 1 */
a47b9029 79extern int icmp_sock; /* -1 */
80extern int neighbors_do_private_keys; /* 1 */
81extern int opt_accel_uses_host; /* 0 */
82extern int opt_catch_signals; /* 1 */
723e8aa3 83extern int opt_debug_stderr; /* -1 */
a47b9029 84extern int opt_dns_tests; /* 1 */
85extern int opt_foreground_rebuild; /* 0 */
86extern int opt_forwarded_for; /* 1 */
a47b9029 87extern int opt_reload_hit_only; /* 0 */
88extern int opt_syslog_enable; /* 0 */
89extern int opt_udp_hit_obj; /* 0 */
85407535 90extern int opt_create_swap_dirs; /* 0 */
b109de6b 91extern int opt_store_doublecheck; /* 0 */
a47b9029 92extern int syslog_enable; /* 0 */
93extern int theInIcpConnection; /* -1 */
94extern int theOutIcpConnection; /* -1 */
ef523f99 95extern int DnsSocket; /* -1 */
2bbd722b 96#ifdef SQUID_SNMP
97extern int theInSnmpConnection; /* -1 */
98extern int theOutSnmpConnection; /* -1 */
99extern char *snmp_agentinfo;
100#endif
a47b9029 101extern int vhost_mode; /* 0 */
0faf70d0 102extern int n_disk_objects; /* 0 */
a8258824 103extern iostats IOStats;
a47b9029 104extern struct _acl_deny_info_list *DenyInfoList; /* NULL */
a8258824 105extern struct in_addr any_addr;
106extern struct in_addr local_addr;
107extern struct in_addr no_addr;
108extern struct in_addr theOutICPAddr;
2bbd722b 109extern struct in_addr theOutSNMPAddr;
a8258824 110extern struct timeval current_time;
f2908497 111extern struct timeval squid_start;
a47b9029 112extern time_t squid_curtime; /* 0 */
2681d383 113extern int shutting_down; /* 0 */
1afe05c5 114extern int reconfiguring; /* 0 */
7e3ce7b9 115extern int store_dirs_rebuilding; /* 1 */
88738790 116extern int store_swap_size; /* 0 */
88738790 117extern unsigned long store_mem_size; /* 0 */
79d39a72 118extern time_t hit_only_mode_until; /* 0 */
f2908497 119extern StatCounters Counter;
27cd7235 120extern char *err_type_str[];
121extern char *icp_opcode_str[];
b109de6b 122extern char *swap_log_op_str[];
7b2a0056 123extern char *lookup_t_str[];
067bea91 124extern double request_failure_ratio; /* 0.0 */
52040193 125extern double current_dtime;
5830cdb3 126extern int store_hash_buckets; /* 0 */
127extern hash_table *store_table; /* NULL */
2b906e48 128#if HEAP_REPLACEMENT
129extern heap *store_heap;
130extern heap *inmem_heap;
131#else
e3ef2b09 132extern dlink_list store_list;
2b906e48 133#endif
0f1bc304 134extern dlink_list ClientActiveRequests;
ec878047 135extern const String StringNull; /* { 0, 0, NULL } */
137ee196 136extern const MemBuf MemBufNull; /* MemBufNULL */
59c4d35b 137extern int hot_obj_count; /* 0 */
a8258824 138extern int _db_level;
4b4cd312 139extern const int CacheDigestHashFuncCount; /* 4 */
140extern CacheDigest *store_digest; /* NULL */
8a6218c6 141extern const char *StoreDigestFileName; /* "store_digest" */
4b4cd312 142extern const char *StoreDigestMimeStr; /* "application/cache-digest" */
c68e9c6b 143#if USE_CACHE_DIGESTS
e13ee7ad 144extern const Version CacheDigestVer; /* { 5, 3 } */
c68e9c6b 145#endif
0cdcddb9 146extern const char *MultipartMsgBoundaryStr; /* "Unique-Squid-Separator" */
147extern icpUdpData *IcpQueueHead; /* NULL */
9f60cfdf 148#if HTTP_VIOLATIONS
cbe3a719 149extern int refresh_nocache_hack; /* 0 */
9f60cfdf 150#endif
92695e5e 151extern request_flags null_request_flags;
83a29c95 152extern int store_open_disk_fd; /* 0 */
0e4e0e7d 153extern const char *SwapDirType[];