*
*/
+#include "acl/AclAddress.h"
#include "ClientDelayConfig.h"
#include "DelayConfig.h"
#include "HttpHeaderTools.h"
#endif
acl_access *redirector;
acl_access *reply;
- acl_address *outgoing_address;
+ AclAddress *outgoing_address;
#if USE_HTCP
acl_access *htcp;
--- /dev/null
+/*
+ * 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.
+ */
+
+#include "squid.h"
+#include "AclAddress.h"
+
+//TODO: fill in
--- /dev/null
+#ifndef ACLADDRESS_H_
+#define ACLADDRESS_H_
+#include "Acl.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.
+ */
+
+#include "ip/Address.h"
+#include "acl/Acl.h"
+
+struct AclAddress {
+ AclAddress *next;
+ ACLList *aclList;
+
+ Ip::Address addr;
+};
+
+#endif /* ACLADDRESS_H_ */
Strategised.h \
\
FilledChecklist.cc \
- FilledChecklist.h
+ FilledChecklist.h \
+ AclAddress.h \
+ AclAddress.cc
## data-specific ACLs
libacls_la_SOURCES = \
#include "squid.h"
#include "acl/Acl.h"
+#include "acl/AclAddress.h"
#include "acl/AclDenyInfoList.h"
#include "acl/AclNameList.h"
#include "acl/Gadgets.h"
addr->SetEmpty();
}
-CBDATA_TYPE(acl_address);
+CBDATA_TYPE(AclAddress);
static void
-dump_acl_address(StoreEntry * entry, const char *name, acl_address * head)
+dump_acl_address(StoreEntry * entry, const char *name, AclAddress * head)
{
char buf[MAX_IPSTRLEN];
- acl_address *l;
+ AclAddress *l;
for (l = head; l; l = l->next) {
if (!l->addr.IsAnyAddr())
static void
freed_acl_address(void *data)
{
- acl_address *l = static_cast<acl_address *>(data);
+ AclAddress *l = static_cast<AclAddress *>(data);
aclDestroyAclList(&l->aclList);
}
static void
-parse_acl_address(acl_address ** head)
+parse_acl_address(AclAddress ** head)
{
- acl_address *l;
- acl_address **tail = head; /* sane name below */
- CBDATA_INIT_TYPE_FREECB(acl_address, freed_acl_address);
- l = cbdataAlloc(acl_address);
+ AclAddress *l;
+ AclAddress **tail = head; /* sane name below */
+ CBDATA_INIT_TYPE_FREECB(AclAddress, freed_acl_address);
+ l = cbdataAlloc(AclAddress);
parse_address(&l->addr);
aclParseAclList(LegacyParser, &l->aclList);
}
static void
-free_acl_address(acl_address ** head)
+free_acl_address(AclAddress ** head)
{
while (*head) {
- acl_address *l = *head;
+ AclAddress *l = *head;
*head = l->next;
cbdataFree(l);
}
#include "squid.h"
#include "AccessLogEntry.h"
+#include "acl/AclAddress.h"
#include "acl/FilledChecklist.h"
#include "acl/Gadgets.h"
#include "anyp/PortCfg.h"
// TODO use the connection details in ACL.
// needs a bit of rework in ACLFilledChecklist to use Comm::Connection instead of ConnStateData
- acl_address *l;
+ AclAddress *l;
for (l = Config.accessList.outgoing_address; l; l = l->next) {
/* check if the outgoing address is usable to the destination */
class ACLList;
-struct acl_address {
- acl_address *next;
- ACLList *aclList;
-
- Ip::Address addr;
-};
-
struct acl_tos {
acl_tos *next;
ACLList *aclList;