]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/Asn.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / Asn.h
1 /*
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 #ifndef SQUID_ACLASN_H
10 #define SQUID_ACLASN_H
11
12 #include "acl/Checklist.h"
13 #include "acl/Data.h"
14 #include "acl/Strategised.h"
15 #include "base/CbDataList.h"
16 #include "ip/Address.h"
17
18 int asnMatchIp(CbDataList<int> *, Ip::Address &);
19
20 /// \ingroup ACLAPI
21 void asnInit(void);
22
23 /// \ingroup ACLAPI
24 void asnFreeMemory(void);
25
26 /// \ingroup ACLAPI
27 class ACLASN : public ACLData<Ip::Address>
28 {
29 MEMPROXY_CLASS(ACLASN);
30
31 public:
32 virtual ~ACLASN();
33
34 virtual bool match(Ip::Address);
35 virtual SBufList dump() const;
36 virtual void parse();
37 bool empty() const;
38 virtual ACLData<Ip::Address> *clone() const;
39 virtual void prepareForUse();
40
41 private:
42 static ACL::Prototype SourceRegistryProtoype;
43 static ACLStrategised<Ip::Address> SourceRegistryEntry_;
44 static ACL::Prototype DestinationRegistryProtoype;
45 static ACLStrategised<Ip::Address> DestinationRegistryEntry_;
46 CbDataList<int> *data;
47 };
48
49 #endif /* SQUID_ACLASN_H */
50