]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/Arp.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / Arp.h
1 /*
2 * Copyright (C) 1996-2017 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_ACLARP_H
10 #define SQUID_ACLARP_H
11
12 #include "acl/Acl.h"
13 #include "acl/Checklist.h"
14
15 #include <set>
16
17 namespace Eui
18 {
19 class Eui48;
20 };
21
22 /// \ingroup ACLAPI
23 class ACLARP : public ACL
24 {
25 MEMPROXY_CLASS(ACLARP);
26
27 public:
28 ACLARP(char const *);
29 ACLARP(ACLARP const &);
30 ~ACLARP() {}
31 ACLARP&operator=(ACLARP const &);
32
33 virtual ACL *clone()const;
34 virtual char const *typeString() const;
35 virtual void parse();
36 virtual int match(ACLChecklist *checklist);
37 virtual SBufList dump() const;
38 virtual bool empty () const;
39
40 protected:
41 static Prototype RegistryProtoype;
42 static ACLARP RegistryEntry_;
43 char const *class_;
44 typedef std::set<Eui::Eui48> AclArpData_t;
45 AclArpData_t aclArpData;
46 };
47
48 #endif /* SQUID_ACLARP_H */
49