ConnMark.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2018 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_ACLCONNMARK_H
10 #define SQUID_ACLCONNMARK_H
11 
12 #include "acl/Acl.h"
13 #include "ip/forward.h"
14 #include "ip/NfMarkConfig.h"
15 #include "parser/Tokenizer.h"
16 
17 #include <vector>
18 
19 namespace Acl {
20 
21 class ConnMark : public ACL
22 {
24 
25 public:
26  /* ACL API */
27  virtual char const *typeString() const override;
28  virtual void parse() override;
29  virtual int match(ACLChecklist *checklist) override;
30  virtual SBufList dump() const override;
31  virtual bool empty() const override;
32 
33 private:
34  std::vector<Ip::NfMarkConfig> marks;
35 };
36 
37 } // namespace Acl
38 
39 #endif /* SQUID_ACLCONNMARK_H */
40 
MEMPROXY_CLASS(ConnMark)
virtual void parse() override
parses node represenation in squid.conf; dies on failures
Definition: ConnMark.cc:26
Definition: Acl.h:39
virtual int match(ACLChecklist *checklist) override
Matches the actual data in checklist against this ACL.
Definition: ConnMark.cc:42
virtual char const * typeString() const override
Definition: ConnMark.cc:75
std::list< SBuf > SBufList
Definition: forward.h:22
std::vector< Ip::NfMarkConfig > marks
marks/masks in configured order
Definition: ConnMark.h:34
virtual bool empty() const override
Definition: ConnMark.cc:20
virtual SBufList dump() const override
Definition: ConnMark.cc:65

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors