#include <DestinationAsn.h>
Public Types | |
using | Parameters = ACLData< Ip::Address > |
Public Member Functions | |
int | match (ACLChecklist *) override |
Matches the actual data in checklist against this ACL. More... | |
bool | requiresRequest () const override |
whether our (i.e. shallow) match() requires checklist to have a request More... | |
void * | operator new (size_t) |
void | operator delete (void *) |
void | context (const char *name, const char *configuration) |
sets user-specified ACL name and squid.conf context More... | |
bool | matches (ACLChecklist *checklist) const |
void | parseFlags () |
configures ACL options, throwing on configuration errors More... | |
virtual char const * | typeString () const =0 |
virtual bool | isProxyAuth () const |
virtual bool | valid () const |
int | cacheMatchAcl (dlink_list *cache, ACLChecklist *) |
virtual int | matchForCache (ACLChecklist *checklist) |
SBufList | dumpOptions () |
Static Public Member Functions | |
static void | ParseAclLine (ConfigParser &parser, ACL **head) |
static void | Initialize () |
static ACL * | FindByName (const char *name) |
Public Attributes | |
char | name [ACL_NAME_SZ] |
char * | cfgline |
ACL * | next |
bool | registered |
added to the global list of ACLs via aclRegister() More... | |
Protected Member Functions | |
void | parse () override |
parses node representation in squid.conf; dies on failures More... | |
void | prepareForUse () override |
SBufList | dump () const override |
bool | empty () const override |
const Acl::Options & | lineOptions () override |
Protected Attributes | |
std::unique_ptr< Parameters > | data |
Private Member Functions | |
virtual bool | requiresAle () const |
whether our (i.e. shallow) match() requires checklist to have a AccessLogEntry More... | |
virtual bool | requiresReply () const |
whether our (i.e. shallow) match() requires checklist to have a reply More... | |
virtual const Acl::Options & | options () |
Detailed Description
Definition at line 20 of file DestinationAsn.h.
Member Typedef Documentation
◆ Parameters
|
inherited |
Definition at line 26 of file ParameterizedNode.h.
Member Function Documentation
◆ cacheMatchAcl()
|
inherited |
Definition at line 367 of file Acl.cc.
References acl_proxy_auth_match_cache::acl_data, dlink_node::data, debugs, dlinkAddTail(), dlink_list::head, acl_proxy_auth_match_cache::link, ACL::matchForCache(), acl_proxy_auth_match_cache::matchrv, ACL::name, and dlink_node::next.
Referenced by ACLProxyAuth::matchProxyAuth().
◆ context()
|
inherited |
Definition at line 180 of file Acl.cc.
References ACL_NAME_SZ, ACL::cfgline, ACL::name, safe_free, xstrdup, and xstrncpy().
Referenced by aclParseAccessLine(), aclParseAclList(), Acl::AllOf::parse(), and ParseAclWithAction().
◆ dump()
|
inlineoverrideprotectedvirtualinherited |
Implements ACL.
Definition at line 37 of file ParameterizedNode.h.
◆ dumpOptions()
|
inherited |
- Returns
- approximate options configuration
Definition at line 326 of file Acl.cc.
References SBufStream::buf(), SBuf::isEmpty(), and ACL::options().
Referenced by dump_acl().
◆ empty()
|
inlineoverrideprotectedvirtualinherited |
Implements ACL.
Definition at line 38 of file ParameterizedNode.h.
◆ FindByName()
|
staticinherited |
Definition at line 118 of file Acl.cc.
References SquidConfig::aclList, Config, debugs, ACL::name, and ACL::next.
Referenced by aclIsProxyAuth(), ExternalACLLookup::checkForAsync(), Acl::InnerNode::lineParse(), parse_ftp_epsv(), and ACL::ParseAclLine().
◆ Initialize()
|
staticinherited |
Definition at line 438 of file Acl.cc.
References SquidConfig::aclList, Config, debugs, ACL::next, and ACL::prepareForUse().
Referenced by serverConnectionsOpen().
◆ isProxyAuth()
|
virtualinherited |
Reimplemented in ACLProxyAuth, ACLExternal, and ACLIdent.
Definition at line 309 of file Acl.cc.
Referenced by aclIsProxyAuth().
◆ lineOptions()
|
inlineoverrideprotectedvirtualinherited |
- Returns
- (linked) "line" Options supported by this ACL
- See also
- ACL::options()
Reimplemented from ACL.
Definition at line 39 of file ParameterizedNode.h.
◆ match()
|
overridevirtual |
Implements ACL.
Definition at line 528 of file Asn.cc.
References AclMatchedName, debugs, Filled(), Dns::CachedIps::goodAndBad(), DestinationIPLookup::Instance(), IP_LOOKUP_IF_MISS, ipcache_gethostbyname(), and Ip::Address::setNoAddr().
◆ matches()
|
inherited |
Orchestrates matching checklist against the ACL using match(), after checking preconditions and while providing debugging.
- Returns
- true if and only if there was a successful match. Updates the checklist state on match, async, and failure.
Definition at line 146 of file Acl.cc.
References AclMatchedName, ACLChecklist::asyncInProgress(), DBG_IMPORTANT, debugs, ACLChecklist::hasAle(), ACLChecklist::hasReply(), ACLChecklist::hasRequest(), ACL::match(), ACL::name, ACL::requiresAle(), ACL::requiresReply(), ACL::requiresRequest(), and ACLChecklist::verifyAle().
Referenced by ACLChecklist::matchAndFinish(), and ACLChecklist::matchChild().
◆ matchForCache()
|
virtualinherited |
Reimplemented in ACLProxyAuth.
Definition at line 349 of file Acl.cc.
References fatal().
Referenced by ACL::cacheMatchAcl().
◆ operator delete()
|
inherited |
◆ operator new()
|
inherited |
◆ options()
|
inlineprivatevirtualinherited |
- Returns
- (linked) 'global' Options supported by this ACL
Reimplemented in Acl::DestinationDomainCheck, ACLDestinationIP, Acl::AnnotationCheck, Acl::ServerNameCheck, and ACLMaxUserIP.
Definition at line 105 of file Acl.h.
References Acl::NoOptions().
Referenced by ACL::dumpOptions(), and ACL::parseFlags().
◆ parse()
|
inlineoverrideprotectedvirtualinherited |
Implements ACL.
Definition at line 35 of file ParameterizedNode.h.
◆ ParseAclLine()
|
staticinherited |
Definition at line 191 of file Acl.cc.
References A, ACL_NAME_SZ, SquidConfig::aclList, AclMatchedName, aclRegister(), assert, Config, config_input_line, DBG_CRITICAL, DBG_IMPORTANT, DBG_PARSE_NOTE, debugs, ConfigParser::destruct(), fatalf(), ACL::FindByName(), head, HttpPortList, LOCAL_ARRAY, Acl::Make(), ConfigParser::NextToken(), and xstrncpy().
Referenced by parse_acl(), and TestACLMaxUserIP::testParseLine().
◆ parseFlags()
|
inherited |
Definition at line 315 of file Acl.cc.
References ACL::lineOptions(), ACL::options(), and Acl::ParseFlags().
◆ prepareForUse()
|
inlineoverrideprotectedvirtualinherited |
Reimplemented from ACL.
Definition at line 36 of file ParameterizedNode.h.
◆ requiresAle()
|
privatevirtualinherited |
◆ requiresReply()
|
privatevirtualinherited |
Reimplemented in Acl::HttpRepHeaderCheck, ACLHTTPStatus, and Acl::ReplyHeaderCheck< header >.
Definition at line 415 of file Acl.cc.
Referenced by ACL::matches().
◆ requiresRequest()
|
inlineoverridevirtual |
Reimplemented from ACL.
Definition at line 25 of file DestinationAsn.h.
◆ typeString()
|
pure virtualinherited |
Implemented in Acl::AllOf, Acl::AnyOf, ACLARP, Acl::NotNode, Acl::AndNode, Acl::OrNode, Acl::ConnectionsEncrypted, Acl::ConnMark, ACLDestinationIP, ACLEui64, ACLExtUser, ACLHTTPStatus, ACLLocalIP, ACLMaxConnection, ACLRandom, ACLSourceIP, Acl::TransactionInitiator, ACLMaxUserIP, ACLProxyAuth, ACLExternal, ACLIdent, and ACLIP.
Referenced by dump_acl().
◆ valid()
|
virtualinherited |
Reimplemented in ACLMaxConnection, ACLRandom, Acl::ServerNameCheck, ACLMaxUserIP, ACLProxyAuth, and ACLExternal.
Member Data Documentation
◆ cfgline
|
inherited |
Definition at line 88 of file Acl.h.
Referenced by ACL::~ACL(), ACL::context(), and Acl::AllOf::parse().
◆ data
|
protectedinherited |
Points to items this ACL is configured to match. A derived class ensures that this pointer is never nil after the ACL object construction ends.
Definition at line 43 of file ParameterizedNode.h.
◆ name
|
inherited |
Definition at line 87 of file Acl.h.
Referenced by ACL::ACL(), Acl::NotNode::NotNode(), ACL::~ACL(), ACL::cacheMatchAcl(), ACL::context(), dump_acl(), ACL::FindByName(), ACLDestinationIP::match(), ACLRandom::match(), ACL::matches(), and ACLMaxConnection::prepareForUse().
◆ next
|
inherited |
Definition at line 89 of file Acl.h.
Referenced by dump_acl(), ACL::FindByName(), and ACL::Initialize().
◆ registered
|
inherited |
Definition at line 90 of file Acl.h.
Referenced by aclDeregister(), aclDestroyAcls(), and aclRegister().
The documentation for this class was generated from the following files:
- src/acl/DestinationAsn.h
- src/acl/Asn.cc