#include <AclMaxUserIp.h>

Inheritance diagram for ACLMaxUserIP:
Collaboration diagram for ACLMaxUserIP:

Public Member Functions

 ACLMaxUserIP (char const *theClass)
 
virtual ACLclone () const
 
virtual char const * typeString () const
 
virtual const Acl::Optionsoptions ()
 
virtual void parse ()
 parses node represenation in squid.conf; dies on failures More...
 
virtual int match (ACLChecklist *cl)
 Matches the actual data in checklist against this ACL. More...
 
virtual SBufList dump () const
 
virtual bool empty () const
 
virtual bool valid () const
 
virtual bool requiresRequest () const
 whether our (i.e. shallow) match() requires checklist to have a request More...
 
int getMaximum () const
 
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
 
virtual void parseFlags ()
 configures ACL options, throwing on configuration errors More...
 
virtual bool isProxyAuth () 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 ACLFindByName (const char *name)
 

Public Attributes

Acl::BooleanOptionValue beStrict
 Enforce "one user, one device" policy? More...
 
char name [ACL_NAME_SZ]
 
char * cfgline
 
ACLnext
 
bool registered
 added to the global list of ACLs via aclRegister() More...
 

Private Member Functions

 MEMPROXY_CLASS (ACLMaxUserIP)
 
int match (Auth::UserRequest::Pointer auth_user_request, Ip::Address const &src_addr)
 

Private Attributes

char const * class_
 
int maximum
 

Detailed Description

Definition at line 17 of file AclMaxUserIp.h.

Constructor & Destructor Documentation

ACLMaxUserIP::ACLMaxUserIP ( char const *  theClass)
explicit

Definition at line 21 of file AclMaxUserIp.cc.

Referenced by clone().

Member Function Documentation

ACL * ACLMaxUserIP::clone ( ) const
virtual

Definition at line 27 of file AclMaxUserIp.cc.

References ACLMaxUserIP().

void ACL::context ( const char *  name,
const char *  configuration 
)
inherited
SBufList ACLMaxUserIP::dump ( ) const
virtual

Implements ACL.

Definition at line 151 of file AclMaxUserIp.cc.

References maximum, and SBuf::Printf().

SBufList ACL::dumpOptions ( )
inherited
Returns
approximate options configuration

Definition at line 296 of file Acl.cc.

References SBufStream::buf(), SBuf::isEmpty(), and ACL::options().

Referenced by dump_acl().

bool ACLMaxUserIP::empty ( ) const
virtual

Implements ACL.

Definition at line 39 of file AclMaxUserIp.cc.

ACL * ACL::FindByName ( const char *  name)
staticinherited
int ACLMaxUserIP::getMaximum ( ) const
inline

Definition at line 34 of file AclMaxUserIp.h.

References maximum.

Referenced by testACLMaxUserIP::testDefaults(), and testACLMaxUserIP::testParseLine().

void ACL::Initialize ( )
staticinherited

Definition at line 404 of file Acl.cc.

References a, SquidConfig::aclList, Config, debugs, ACL::next, and ACL::prepareForUse().

Referenced by serverConnectionsOpen().

bool ACL::isProxyAuth ( ) const
virtualinherited

Reimplemented in ACLExternal, ACLIdent, and ACLProxyAuth.

Definition at line 283 of file Acl.cc.

Referenced by aclIsProxyAuth().

bool ACL::matches ( ACLChecklist checklist) const
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 121 of file Acl.cc.

References AclMatchedName, ACLChecklist::asyncInProgress(), DBG_IMPORTANT, debugs, ACLChecklist::hasAle(), ACLChecklist::hasReply(), ACLChecklist::hasRequest(), ACL::match(), ACL::name, PROF_start, PROF_stop, ACL::requiresAle(), ACL::requiresReply(), ACL::requiresRequest(), and ACLChecklist::syncAle().

Referenced by ACLChecklist::matchAndFinish(), and ACLChecklist::matchChild().

int ACL::matchForCache ( ACLChecklist checklist)
virtualinherited

Reimplemented in ACLProxyAuth.

Definition at line 315 of file Acl.cc.

References fatal().

Referenced by ACL::cacheMatchAcl().

ACLMaxUserIP::MEMPROXY_CLASS ( ACLMaxUserIP  )
private
void ACL::operator delete ( void *  )
inherited

Definition at line 87 of file Acl.cc.

References fatal().

void * ACL::operator new ( size_t  )
inherited

Definition at line 80 of file Acl.cc.

References fatal().

const Acl::Options & ACLMaxUserIP::options ( )
virtual
Returns
(linked) Options supported by this ACL

Reimplemented from ACL.

Definition at line 51 of file AclMaxUserIp.cc.

References beStrict, and Acl::TypedOption< Recipient >::linkWith().

void ACLMaxUserIP::parse ( )
virtual

Implements ACL.

Definition at line 60 of file AclMaxUserIp.cc.

References DBG_IMPORTANT, debugs, maximum, ConfigParser::strtokFile(), and xatoi().

void ACL::parseFlags ( )
virtualinherited

Reimplemented in ACLIdent, ACLProxyAuth, ACLStrategised< M >, and ACLExtUser.

Definition at line 289 of file Acl.cc.

References Acl::NoFlags(), ACL::options(), and Acl::ParseFlags().

Referenced by ACL::ParseAclLine().

virtual void ACL::prepareForUse ( )
inlinevirtualinherited

Reimplemented in ACLStrategised< M >, Acl::InnerNode, and ACLMaxConnection.

Definition at line 79 of file Acl.h.

Referenced by ACL::Initialize().

virtual bool ACLMaxUserIP::requiresRequest ( ) const
inlinevirtual

Reimplemented from ACL.

Definition at line 32 of file AclMaxUserIp.h.

char const * ACLMaxUserIP::typeString ( ) const
virtual

Implements ACL.

Definition at line 33 of file AclMaxUserIp.cc.

References class_.

bool ACLMaxUserIP::valid ( ) const
virtual

Reimplemented from ACL.

Definition at line 45 of file AclMaxUserIp.cc.

References maximum.

Referenced by testACLMaxUserIP::testDefaults(), and testACLMaxUserIP::testParseLine().

Member Data Documentation

Acl::BooleanOptionValue ACLMaxUserIP::beStrict
char* ACL::cfgline
inherited

Definition at line 84 of file Acl.h.

Referenced by ACL::context(), Acl::AllOf::parse(), ACL::ParseAclLine(), and ACL::~ACL().

char const* ACLMaxUserIP::class_
private

Definition at line 43 of file AclMaxUserIp.h.

Referenced by typeString().

int ACLMaxUserIP::maximum
private

Definition at line 44 of file AclMaxUserIp.h.

Referenced by dump(), getMaximum(), match(), parse(), and valid().

ACL* ACL::next
inherited

Definition at line 85 of file Acl.h.

Referenced by dump_acl(), ACL::FindByName(), ACL::Initialize(), and ACL::ParseAclLine().

bool ACL::registered
inherited

Definition at line 86 of file Acl.h.

Referenced by aclDeregister(), aclDestroyAcls(), and aclRegister().


The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors