~chtsanti/squid/icap-max-connections

« back to all changes in this revision

Viewing changes to src/acl/MyPort.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:
34
34
 */
35
35
 
36
36
#include "squid.h"
37
 
#include "ACLMyPort.h"
38
 
#include "ACLIntRange.h"
39
 
#include "ACLChecklist.h"
 
37
#include "acl/MyPort.h"
 
38
#include "acl/IntRange.h"
 
39
#include "acl/Checklist.h"
40
40
 
41
41
/* explicit template instantiation required for some systems */
42
42
 
43
43
template class ACLStrategised<int>;
44
44
 
45
 
ACL::Prototype ACLMyPort::RegistryProtoype(&ACLMyPort::RegistryEntry_, "myport");
46
45
 
47
 
ACLStrategised<int> ACLMyPort::RegistryEntry_(new ACLIntRange, ACLMyPortStrategy::Instance(), "myport");
48
46
 
49
47
int
50
 
ACLMyPortStrategy::match (ACLData<MatchType> * &data, ACLChecklist *checklist)
 
48
ACLMyPortStrategy::match (ACLData<MatchType> * &data, ACLFilledChecklist *checklist)
51
49
{
52
50
    return data->match (checklist->my_addr.GetPort());
53
51
}