Singleton class for access controls. More...
#include <IPAllow.h>

Public Types | |
| typedef IpAllow | self |
| Self reference type. | |
| typedef ConfigProcessor::scoped_config < IpAllow, IpAllow > | scoped_config |
Public Member Functions | |
| IpAllow (const char *config_var, const char *name, const char *action_val) | |
| ~IpAllow () | |
| void | Print () |
| AclRecord * | match (IpEndpoint const *ip) const |
| AclRecord * | match (sockaddr const *ip) const |
Static Public Member Functions | |
| static void | startup () |
| static void | reconfigure () |
| static IpAllow * | acquire () |
| static void | release (IpAllow *params) |
| static const AclRecord * | AllMethodAcl () |
Friends | |
| struct | IpAllowUpdate |
| int | main (int, char **) |
Singleton class for access controls.
Definition at line 96 of file IPAllow.h.
| typedef ConfigProcessor::scoped_config<IpAllow, IpAllow> IpAllow::scoped_config |
| typedef IpAllow IpAllow::self |
| IpAllow::IpAllow | ( | const char * | config_var, | |
| const char * | name, | |||
| const char * | action_val | |||
| ) |
Definition at line 98 of file IPAllow.cc.
References ink_release_assert, ink_strlcpy(), and RecConfigReadConfigPath().
| IpAllow::~IpAllow | ( | ) |
Definition at line 113 of file IPAllow.cc.
| IpAllow * IpAllow::acquire | ( | ) | [static] |
Definition at line 82 of file IPAllow.cc.
| static const AclRecord* IpAllow::AllMethodAcl | ( | ) | [inline, static] |
Definition at line 117 of file IPAllow.h.
Referenced by HttpSessionAccept::accept().
| AclRecord * IpAllow::match | ( | IpEndpoint const * | ip | ) | const [inline] |
Definition at line 137 of file IPAllow.h.
References IpEndpoint::sa.
| AclRecord * IpAllow::match | ( | sockaddr const * | ip | ) | const [inline] |
Definition at line 142 of file IPAllow.h.
References IpMap::contains().
| void IpAllow::Print | ( | ) |
Definition at line 118 of file IPAllow.cc.
References AclRecord::_method_mask, AclRecord::_nonstandard_methods, AclRecord::_src_line, AclRecord::ALL_METHOD_MASK, ats_ip_addr_cmp(), ats_ip_ntop(), IpMap::begin(), Debug, IpMap::end(), IpMap::getCount(), hdrtoken_index_to_wks(), HTTP_WKSIDX_CONNECT, and HTTP_WKSIDX_METHODS_CNT.
| void IpAllow::reconfigure | ( | ) | [static] |
| void IpAllow::release | ( | IpAllow * | params | ) | [static] |
Definition at line 88 of file IPAllow.cc.
| void IpAllow::startup | ( | ) | [static] |
Definition at line 57 of file IPAllow.cc.
References ink_assert, ipAllowUpdate, and reconfigure().
Referenced by main().
| int main | ( | int | , | |
| char ** | argv | |||
| ) | [friend] |
Definition at line 34 of file test-tsconfig.cc.
1.7.1