]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/Asn.h
Boilerplate: update copyright blurbs on src/
[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 "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
30 public:
31 MEMPROXY_CLASS(ACLASN);
32
33 virtual ~ACLASN();
34
35 virtual bool match(Ip::Address);
36 virtual SBufList dump() const;
37 virtual void parse();
38 bool empty() const;
39 virtual ACLData<Ip::Address> *clone() const;
40 virtual void prepareForUse();
41
42 private:
43 static ACL::Prototype SourceRegistryProtoype;
44 static ACLStrategised<Ip::Address> SourceRegistryEntry_;
45 static ACL::Prototype DestinationRegistryProtoype;
46 static ACLStrategised<Ip::Address> DestinationRegistryEntry_;
47 CbDataList<int> *data;
48 };
49
50 MEMPROXY_CLASS_INLINE(ACLASN);
51
52 #endif /* SQUID_ACLASN_H */