#include <SourceIp.h>


Public Types | |
typedef Splay< acl_ip_data * > | IPSplay |
Public Member Functions | |
virtual char const * | typeString () const |
virtual int | match (ACLChecklist *checklist) |
Matches the actual data in checklist against this ACL. More... | |
void * | operator new (size_t) |
void | operator delete (void *) |
virtual void | parse () |
parses node representation in squid.conf; dies on failures More... | |
virtual SBufList | dump () const |
virtual bool | empty () const |
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 bool | isProxyAuth () const |
virtual bool | valid () const |
int | cacheMatchAcl (dlink_list *cache, ACLChecklist *) |
virtual int | matchForCache (ACLChecklist *checklist) |
virtual void | prepareForUse () |
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 | |
int | match (const Ip::Address &) |
Protected Attributes | |
IPSplay * | data |
Private Member Functions | |
MEMPROXY_CLASS (ACLSourceIP) | |
virtual bool | requiresAle () const |
whether our (i.e. shallow) match() requires checklist to have a AccessLogEntry More... | |
virtual bool | requiresRequest () const |
whether our (i.e. shallow) match() requires checklist to have a request More... | |
virtual bool | requiresReply () const |
whether our (i.e. shallow) match() requires checklist to have a reply More... | |
virtual const Acl::Options & | options () |
virtual const Acl::Options & | lineOptions () |
Detailed Description
Definition at line 14 of file SourceIp.h.
Member Typedef Documentation
◆ IPSplay
|
inherited |
Member Function Documentation
◆ cacheMatchAcl()
|
inherited |
Definition at line 341 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 154 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()
|
virtualinherited |
Implements ACL.
Definition at line 510 of file Ip.cc.
References IpAclDumpVisitor::contents, ACLIP::data, and Splay< V >::visit().
◆ dumpOptions()
|
inherited |
- Returns
- approximate options configuration
Definition at line 300 of file Acl.cc.
References SBufStream::buf(), SBuf::isEmpty(), and ACL::options().
Referenced by dump_acl().
◆ empty()
|
virtualinherited |
Implements ACL.
Definition at line 518 of file Ip.cc.
References ACLIP::data, and Splay< V >::empty().
◆ FindByName()
|
staticinherited |
Definition at line 92 of file Acl.cc.
References SquidConfig::aclList, Config, debugs, ACL::name, ACL::next, and NULL.
Referenced by aclIsProxyAuth(), ExternalACLLookup::checkForAsync(), Acl::InnerNode::lineParse(), parse_ftp_epsv(), and ACL::ParseAclLine().
◆ Initialize()
|
staticinherited |
Definition at line 412 of file Acl.cc.
References SquidConfig::aclList, Config, debugs, ACL::next, and ACL::prepareForUse().
Referenced by serverConnectionsOpen().
◆ isProxyAuth()
|
virtualinherited |
Reimplemented in ACLIdent, ACLExternal, and ACLProxyAuth.
Definition at line 283 of file Acl.cc.
Referenced by aclIsProxyAuth().
◆ lineOptions()
|
inlineprivatevirtualinherited |
- Returns
- (linked) "line" Options supported by this ACL
- See also
- ACL::options()
Reimplemented in ACLIdent, ACLProxyAuth, ACLStrategised< M >, and ACLExtUser.
Definition at line 103 of file Acl.h.
References Acl::NoOptions().
Referenced by ACL::parseFlags().
◆ match() [1/2]
|
virtual |
Implements ACLIP.
Definition at line 22 of file SourceIp.cc.
References Filled(), and ACLIP::match().
◆ match() [2/2]
|
protectedinherited |
Definition at line 524 of file Ip.cc.
References aclIpAddrNetworkCompare(), acl_ip_data::addr1, acl_ip_data::addr2, ACLIP::data, debugs, Splay< V >::find(), acl_ip_data::mask, NULL, and Ip::Address::setEmpty().
◆ 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 120 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 323 of file Acl.cc.
References fatal().
Referenced by ACL::cacheMatchAcl().
◆ MEMPROXY_CLASS()
|
private |
◆ operator delete()
|
inherited |
◆ operator new()
|
inherited |
◆ options()
|
inlineprivatevirtualinherited |
- Returns
- (linked) 'global' Options supported by this ACL
Reimplemented in ACLMaxUserIP, ACLStrategised< M >, and ACLDestinationIP.
Definition at line 99 of file Acl.h.
References Acl::NoOptions().
Referenced by ACL::dumpOptions(), and ACL::parseFlags().
◆ parse()
|
virtualinherited |
Implements ACL.
Definition at line 475 of file Ip.cc.
References ACLIP::data, acl_ip_data::FactoryParse(), Splay< V >::find(), Splay< V >::insert(), acl_ip_data::NetworkCompare(), acl_ip_data::next, NULL, and ConfigParser::strtokFile().
◆ ParseAclLine()
|
staticinherited |
Definition at line 165 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(), NULL, and xstrncpy().
Referenced by parse_acl(), and testACLMaxUserIP::testParseLine().
◆ parseFlags()
|
inherited |
Definition at line 289 of file Acl.cc.
References ACL::lineOptions(), ACL::options(), and Acl::ParseFlags().
◆ prepareForUse()
|
inlinevirtualinherited |
Reimplemented in ACLStrategised< M >, ACLMaxConnection, and Acl::InnerNode.
Definition at line 77 of file Acl.h.
Referenced by ACL::Initialize().
◆ requiresAle()
|
privatevirtualinherited |
◆ requiresReply()
|
privatevirtualinherited |
Reimplemented in ACLStrategised< M >, and ACLHTTPStatus.
Definition at line 389 of file Acl.cc.
Referenced by ACL::matches().
◆ requiresRequest()
|
privatevirtualinherited |
Reimplemented in ACLExternal, ACLProxyAuth, ACLMaxUserIP, Acl::TransactionInitiator, and ACLStrategised< M >.
Definition at line 395 of file Acl.cc.
Referenced by ACL::matches().
◆ typeString()
|
virtual |
Implements ACLIP.
Definition at line 16 of file SourceIp.cc.
◆ valid()
|
virtualinherited |
Reimplemented in ACLExternal, ACLProxyAuth, ACLMaxUserIP, ACLStrategised< M >, ACLRandom, and ACLMaxConnection.
Member Data Documentation
◆ cfgline
|
inherited |
Definition at line 82 of file Acl.h.
Referenced by ACL::~ACL(), ACL::context(), and Acl::AllOf::parse().
◆ data
|
protectedinherited |
Definition at line 65 of file Ip.h.
Referenced by ACLIP::~ACLIP(), ACLIP::dump(), ACLIP::empty(), ACLIP::match(), and ACLIP::parse().
◆ name
|
inherited |
Definition at line 81 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 83 of file Acl.h.
Referenced by dump_acl(), ACL::FindByName(), and ACL::Initialize().
◆ registered
|
inherited |
Definition at line 84 of file Acl.h.
Referenced by aclDeregister(), aclDestroyAcls(), and aclRegister().
The documentation for this class was generated from the following files:
- src/acl/SourceIp.h
- src/acl/SourceIp.cc