~chtsanti/squid/icap-max-connections

« back to all changes in this revision

Viewing changes to src/acl/PeerName.cc

  • Committer: Christos Tsantilas
  • Date: 2009-04-11 09:00:59 UTC
  • mfrom: (9294.1.333 trunk)
  • Revision ID: chtsanti@users.sourceforge.net-20090411090059-8n47p1kyy1cqfqkn
MergeĀ FromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include "squid.h"
2
 
#include "ACLPeerName.h"
3
 
#include "ACLStringData.h"
4
 
#include "ACLChecklist.h"
5
 
 
6
 
ACL::Prototype ACLPeerName::RegistryProtoype(&ACLPeerName::RegistryEntry_, "peername");
7
 
 
8
 
ACLStrategised<const char *> ACLPeerName::RegistryEntry_(new ACLStringData, ACLPeerNameStrategy::Instance(), "peername");
 
2
#include "acl/PeerName.h"
 
3
#include "acl/StringData.h"
 
4
#include "acl/Checklist.h"
 
5
 
 
6
 
9
7
 
10
8
int
11
 
ACLPeerNameStrategy::match (ACLData<MatchType> * &data, ACLChecklist *checklist)
 
9
ACLPeerNameStrategy::match (ACLData<MatchType> * &data, ACLFilledChecklist *checklist)
12
10
{
13
11
    if (checklist->dst_peer != NULL && checklist->dst_peer->name != NULL)
14
12
        return data->match(checklist->dst_peer->name);