cbdata.h \
ChunkedCodingParser.cc \
ChunkedCodingParser.h \
+ client_db.h \
client_db.cc \
client_side.cc \
client_side.h \
carp.cc \
cbdata.cc \
ChunkedCodingParser.cc \
+ client_db.h \
client_db.cc \
client_side.cc \
client_side_reply.cc \
tests_testDiskIO_SOURCES = \
CacheDigest.cc \
cbdata.cc \
+ client_db.h \
ClientInfo.h \
ConfigOption.cc \
ConfigParser.cc \
carp.cc \
cbdata.cc \
ChunkedCodingParser.cc \
+ client_db.h \
client_db.cc \
client_side.cc \
client_side_reply.cc \
carp.cc \
cbdata.cc \
ChunkedCodingParser.cc \
+ client_db.h \
client_db.cc \
client_side.cc \
client_side_reply.cc \
carp.cc \
cbdata.cc \
ChunkedCodingParser.cc \
+ client_db.h \
client_db.cc \
client_side.cc \
client_side_reply.cc \
carp.cc \
cbdata.cc \
ChunkedCodingParser.cc \
+ client_db.h \
client_db.cc \
client_side.cc \
client_side_reply.cc \
tests/stub_store_rebuild.cc \
tests/stub_store_stats.cc \
fd.cc \
+ client_db.h \
disk.cc \
FileMap.h \
filemap.cc \
tests/stub_access_log.cc \
tests/stub_cache_cf.cc \
tests/stub_cache_manager.cc \
+ client_db.h \
tests/stub_client_db.cc \
tests/stub_client_side_request.cc \
tests/stub_debug.cc \
tests/testMain.cc \
tests/testCoss.h \
tests/stub_cache_manager.cc \
+ client_db.h \
tests/stub_client_db.cc \
tests/stub_debug.cc \
tests/stub_HelperChildConfig.cc \
carp.cc \
cbdata.cc \
ChunkedCodingParser.cc \
+ client_db.h \
client_db.cc \
client_side.cc \
client_side_reply.cc \
#include "acl/Checklist.h"
#include "acl/RegexData.h"
#include "acl/DomainData.h"
+#include "fqdncache.h"
#include "HttpRequest.h"
#include "ipcache.h"
#include "protos.h"
#include "squid.h"
#include "acl/FilledChecklist.h"
#include "acl/MaxConnection.h"
+#include "client_db.h"
#include "Debug.h"
#include "protos.h"
#include "wordlist.h"
#include "acl/Checklist.h"
#include "acl/RegexData.h"
#include "acl/DomainData.h"
+#include "fqdncache.h"
#include "HttpRequest.h"
#include "protos.h"
*/
#include "squid.h"
+#include "client_db.h"
#include "event.h"
#include "format/Token.h"
#include "ClientInfo.h"
+#include "fqdncache.h"
#include "ip/Address.h"
#include "mgr/Registration.h"
#include "protos.h"
--- /dev/null
+/*
+ * DEBUG: section
+ * AUTHOR:
+ *
+ * SQUID Web Proxy Cache http://www.squid-cache.org/
+ * ----------------------------------------------------------
+ *
+ * Squid is the result of efforts by numerous individuals from
+ * the Internet community; see the CONTRIBUTORS file for full
+ * details. Many organizations have provided support for Squid's
+ * development; see the SPONSORS file for full details. Squid is
+ * Copyrighted (C) 2001 by the Regents of the University of
+ * California; see the COPYRIGHT file for full details. Squid
+ * incorporates software developed and/or copyrighted by other
+ * sources; see the CREDITS file for full details.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
+ *
+ */
+
+
+#ifndef SQUID_CLIENT_DB_H_
+#define SQUID_CLIENT_DB_H_
+
+#include "anyp/ProtocolType.h"
+#include "enums.h"
+#include "ip/Address.h"
+
+class StoreEntry;
+class ClientInfo;
+
+extern void clientdbInit(void);
+extern void clientdbUpdate(const Ip::Address &, log_type, AnyP::ProtocolType, size_t);
+extern int clientdbCutoffDenied(const Ip::Address &);
+extern void clientdbDump(StoreEntry *);
+extern void clientdbFreeMemory(void);
+extern int clientdbEstablished(const Ip::Address &, int);
+
+#if USE_DELAY_POOLS
+extern void clientdbSetWriteLimiter(ClientInfo * info, const int writeSpeedLimit,const double initialBurst,const double highWatermark);
+extern ClientInfo * clientdbGetInfo(const Ip::Address &addr);
+#endif
+
+
+#endif /* SQUID_CLIENT_DB_H_ */
#include "base/Subscription.h"
#include "base/TextException.h"
#include "ChunkedCodingParser.h"
+#include "client_db.h"
#include "client_side_reply.h"
#include "client_side_request.h"
#include "client_side.h"
#include "eui/Config.h"
#include "fde.h"
#include "forward.h"
+#include "fqdncache.h"
#include "HttpHdrContRange.h"
#include "HttpReply.h"
#include "HttpRequest.h"
#include "squid.h"
#include "base/TextException.h"
+#include "client_db.h"
#include "comm/AcceptLimiter.h"
#include "CommCalls.h"
#include "comm/comm_internal.h"
#include "format/Format.h"
#include "format/Quoting.h"
#include "format/Token.h"
+#include "fqdncache.h"
#include "HttpRequest.h"
#include "MemBuf.h"
#include "protos.h"
#endif
}
-/// \ingroup FQDNCacheInternal
-static void
-fqdncacheRegisterWithCacheManager(void)
-{
- Mgr::RegisterAction("fqdncache", "FQDN Cache Stats and Contents",
- fqdnStats, 0, 1);
-
-}
-
-/**
- \ingroup FQDNCacheAPI
- *
- * Initialize the fqdncache.
- * Called after IP cache initialization.
- */
-void
-fqdncache_init(void)
-{
- int n;
-
- fqdncacheRegisterWithCacheManager();
-
- if (fqdn_table)
- return;
-
- debugs(35, 3, "Initializing FQDN Cache...");
-
- memset(&FqdncacheStats, '\0', sizeof(FqdncacheStats));
-
- memset(&lru_list, '\0', sizeof(lru_list));
-
- fqdncache_high = (long) (((float) Config.fqdncache.size *
- (float) FQDN_HIGH_WATER) / (float) 100);
-
- fqdncache_low = (long) (((float) Config.fqdncache.size *
- (float) FQDN_LOW_WATER) / (float) 100);
-
- n = hashPrime(fqdncache_high / 4);
-
- fqdn_table = hash_create((HASHCMP *) strcmp, n, hash4);
-
- memDataInit(MEM_FQDNCACHE_ENTRY, "fqdncache_entry",
- sizeof(fqdncache_entry), 0);
-}
/**
\ingroup FQDNCacheAPI
}
/// \ingroup FQDNCacheAPI
+#if 0
const char *
fqdnFromAddr(const Ip::Address &addr)
{
return buf;
}
+#endif
/// \ingroup FQDNCacheInternal
static void
fqdncacheLockEntry(fce);
}
+/// \ingroup FQDNCacheInternal
+static void
+fqdncacheRegisterWithCacheManager(void)
+{
+ Mgr::RegisterAction("fqdncache", "FQDN Cache Stats and Contents",
+ fqdnStats, 0, 1);
+
+}
+
+/**
+ \ingroup FQDNCacheAPI
+ *
+ * Initialize the fqdncache.
+ * Called after IP cache initialization.
+ */
+void
+fqdncache_init(void)
+{
+ int n;
+
+ fqdncacheRegisterWithCacheManager();
+
+ if (fqdn_table)
+ return;
+
+ debugs(35, 3, "Initializing FQDN Cache...");
+
+ memset(&FqdncacheStats, '\0', sizeof(FqdncacheStats));
+
+ memset(&lru_list, '\0', sizeof(lru_list));
+
+ fqdncache_high = (long) (((float) Config.fqdncache.size *
+ (float) FQDN_HIGH_WATER) / (float) 100);
+
+ fqdncache_low = (long) (((float) Config.fqdncache.size *
+ (float) FQDN_LOW_WATER) / (float) 100);
+
+ n = hashPrime(fqdncache_high / 4);
+
+ fqdn_table = hash_create((HASHCMP *) strcmp, n, hash4);
+
+ memDataInit(MEM_FQDNCACHE_ENTRY, "fqdncache_entry",
+ sizeof(fqdncache_entry), 0);
+}
#if SQUID_SNMP
/**
--- /dev/null
+/*
+ * DEBUG: section
+ * AUTHOR:
+ *
+ * SQUID Web Proxy Cache http://www.squid-cache.org/
+ * ----------------------------------------------------------
+ *
+ * Squid is the result of efforts by numerous individuals from
+ * the Internet community; see the CONTRIBUTORS file for full
+ * details. Many organizations have provided support for Squid's
+ * development; see the SPONSORS file for full details. Squid is
+ * Copyrighted (C) 2001 by the Regents of the University of
+ * California; see the COPYRIGHT file for full details. Squid
+ * incorporates software developed and/or copyrighted by other
+ * sources; see the CREDITS file for full details.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
+ *
+ */
+
+
+#ifndef SQUID_FQDNCACHE_H_
+#define SQUID_FQDNCACHE_H_
+
+#include "ip/Address.h"
+#include "typedefs.h"
+
+class StoreEntry;
+class wordlist;
+
+extern void fqdncache_init(void);
+void fqdnStats(StoreEntry *);
+//extern void fqdncacheReleaseInvalid(const char *);
+//extern int fqdncacheQueueDrain(void);
+extern void fqdncacheFreeMemory(void);
+extern void fqdncache_restart(void);
+extern void fqdncache_purgelru(void *);
+extern void fqdncacheAddEntryFromHosts(char *addr, wordlist * hostnames);
+
+extern const char *fqdncache_gethostbyaddr(const Ip::Address &, int flags);
+//extern const char *fqdnFromAddr(const Ip::Address &);
+extern void fqdncache_nbgethostbyaddr(const Ip::Address &, FQDNH *, void *);
+
+
+
+
+#endif /* SQUID_FQDNCACHE_H_ */
#include "AccessLogEntry.h"
#include "acl/Acl.h"
#include "acl/FilledChecklist.h"
+#include "client_db.h"
#include "comm.h"
#include "comm/Connection.h"
#include "comm/Loops.h"
#include "AccessLogEntry.h"
#include "format/Quoting.h"
+#include "fqdncache.h"
#include "HttpRequest.h"
#include "log/File.h"
#include "log/Formats.h"
#include "base/RunnersRegistry.h"
#include "base/Subscription.h"
#include "base/TextException.h"
+#include "client_db.h"
#include "comm.h"
#include "ConfigParser.h"
#include "CpuAffinity.h"
#include "format/Token.h"
#include "forward.h"
#include "fs/Module.h"
-#include "fs/Module.h"
+#include "fqdncache.h"
#include "htcp.h"
#include "HttpReply.h"
#include "icmp/IcmpSquid.h"
/* client_side.c - FD related client side routines */
-SQUIDCEXTERN void clientdbInit(void);
-
#include "anyp/ProtocolType.h"
-SQUIDCEXTERN void clientdbUpdate(const Ip::Address &, log_type, AnyP::ProtocolType, size_t);
-
-SQUIDCEXTERN int clientdbCutoffDenied(const Ip::Address &);
-void clientdbDump(StoreEntry *);
-SQUIDCEXTERN void clientdbFreeMemory(void);
-
-SQUIDCEXTERN int clientdbEstablished(const Ip::Address &, int);
-#if USE_DELAY_POOLS
-SQUIDCEXTERN void clientdbSetWriteLimiter(ClientInfo * info, const int writeSpeedLimit,const double initialBurst,const double highWatermark);
-SQUIDCEXTERN ClientInfo * clientdbGetInfo(const Ip::Address &addr);
-#endif
SQUIDCEXTERN void clientOpenListenSockets(void);
SQUIDCEXTERN void clientHttpConnectionsClose(void);
SQUIDCEXTERN void httpRequestFree(void *);
extern int fdUsageHigh(void);
extern void fdAdjustReserved(void);
-SQUIDCEXTERN void fqdncache_nbgethostbyaddr(const Ip::Address &, FQDNH *, void *);
-
-SQUIDCEXTERN const char *fqdncache_gethostbyaddr(const Ip::Address &, int flags);
-SQUIDCEXTERN void fqdncache_init(void);
-void fqdnStats(StoreEntry *);
-SQUIDCEXTERN void fqdncacheReleaseInvalid(const char *);
-
-SQUIDCEXTERN const char *fqdnFromAddr(const Ip::Address &);
-SQUIDCEXTERN int fqdncacheQueueDrain(void);
-SQUIDCEXTERN void fqdncacheFreeMemory(void);
-SQUIDCEXTERN void fqdncache_restart(void);
-extern void fqdncache_purgelru(void *);
-SQUIDCEXTERN void fqdncacheAddEntryFromHosts(char *addr, wordlist * hostnames);
-
class FwdState;
/**
#include "client_side_request.h"
#include "comm/Connection.h"
#include "fde.h"
+#include "fqdncache.h"
#include "globals.h"
#include "HttpRequest.h"
#include "helper.h"
#include "squid.h"
#include "base/Subscription.h"
#include "fde.h"
+#include "fqdncache.h"
#include "htcp.h"
#include "ICP.h"
#include "ip/Intercept.h"