ConnMark.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 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_SRC_ACL_CONNMARK_H
10 #define SQUID_SRC_ACL_CONNMARK_H
11 
12 #include "acl/Node.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::Node
22 {
24 
25 public:
26  /* Acl::Node API */
27  char const *typeString() const override;
28  void parse() override;
29  int match(ACLChecklist *checklist) override;
30  SBufList dump() const override;
31  bool empty() const override;
32 
33 private:
34  std::vector<Ip::NfMarkConfig> marks;
35 };
36 
37 } // namespace Acl
38 
39 #endif /* SQUID_SRC_ACL_CONNMARK_H */
40 
std::list< SBuf > SBufList
Definition: forward.h:22
Definition: Acl.cc:33
MEMPROXY_CLASS(ConnMark)
bool empty() const override
Definition: ConnMark.cc:21
SBufList dump() const override
Definition: ConnMark.cc:66
void parse() override
parses node representation in squid.conf; dies on failures
Definition: ConnMark.cc:27
const char * typeString() const override
Definition: ConnMark.cc:76
Definition: Node.h:25
std::vector< Ip::NfMarkConfig > marks
marks/masks in configured order
Definition: ConnMark.h:34
int match(ACLChecklist *checklist) override
Matches the actual data in checklist against this Acl::Node.
Definition: ConnMark.cc:43

 

Introduction

Documentation

Support

Miscellaneous