#endif
class acl_access;
-class domain_ping;
+class CachePeerDomainList;
class NeighborTypeDomainList;
class PeerDigest;
#endif
unsigned short http_port;
- domain_ping *peer_domain;
+ CachePeerDomainList *peer_domain;
NeighborTypeDomainList *typelist;
acl_access *access;
--- /dev/null
+#ifndef SQUID_CACHEPEERDOMAINLIST_H_
+#define SQUID_CACHEPEERDOMAINLIST_H_
+/*
+ * 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.
+ *
+ */
+
+/// representation of the cache_peer_domain list. POD.
+class CachePeerDomainList
+{
+public:
+ char *domain;
+ bool do_ping;
+ CachePeerDomainList *next;
+};
+
+#endif /* SQUID_CACHEPEERDOMAINLIST_H_ */
CacheDigest.cc \
cache_manager.cc \
NeighborTypeDomainList.h \
+ CachePeerDomainList.h \
CachePeer.h \
CacheManager.h \
carp.h \
#include "base/RunnersRegistry.h"
#include "mgr/ActionPasswordList.h"
#include "CachePeer.h"
+#include "CachePeerDomainList.h"
#include "cache_cf.h"
#include "ConfigParser.h"
#include "CpuAffinityMap.h"
static void
dump_peer(StoreEntry * entry, const char *name, CachePeer * p)
{
- domain_ping *d;
+ CachePeerDomainList *d;
NeighborTypeDomainList *t;
LOCAL_ARRAY(char, xname, 128);
self_destruct();
while ((domain = strtok(NULL, list_sep))) {
- domain_ping *l = NULL;
- domain_ping **L = NULL;
+ CachePeerDomainList *l = NULL;
+ CachePeerDomainList **L = NULL;
CachePeer *p;
if ((p = peerFindByName(host)) == NULL) {
continue;
}
- l = static_cast<domain_ping *>(xcalloc(1, sizeof(domain_ping)));
- l->do_ping = 1;
+ l = static_cast<CachePeerDomainList *>(xcalloc(1, sizeof(CachePeerDomainList)));
+ l->do_ping = true;
if (*domain == '!') { /* check for !.edu */
- l->do_ping = 0;
+ l->do_ping = false;
++domain;
}
#include "anyp/PortCfg.h"
#include "CacheDigest.h"
#include "CachePeer.h"
+#include "CachePeerDomainList.h"
#include "comm/Connection.h"
#include "comm/ConnOpener.h"
#include "event.h"
peerAllowedToUse(const CachePeer * p, HttpRequest * request)
{
- const domain_ping *d = NULL;
+ const CachePeerDomainList *d = NULL;
assert(request != NULL);
if (neighborType(p, request) == PEER_SIBLING) {
if (p == NULL)
return;
- domain_ping *nl = NULL;
+ CachePeerDomainList *nl = NULL;
- for (domain_ping *l = p->peer_domain; l; l = nl) {
+ for (CachePeerDomainList *l = p->peer_domain; l; l = nl) {
nl = l->next;
safe_free(l->domain);
xfree(l);
{
CachePeer *e = NULL;
char ntoabuf[MAX_IPSTRLEN];
- domain_ping *d = NULL;
+ CachePeerDomainList *d = NULL;
icp_opcode op;
int i;
unsigned int sentLastChunk:1; ///< do not try to write last-chunk again
};
-// POD
-class domain_ping
-{
-public:
- char *domain;
- int do_ping; /* boolean */
- domain_ping *next;
-};
-
#if USE_SSL
struct _sslproxy_cert_sign {
int alg;