Squid Web Cache master
Loading...
Searching...
No Matches
ConnMark.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2025 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
19namespace Acl {
20
21class ConnMark : public Acl::Node
22{
24
25public:
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
33private:
34 std::vector<Ip::NfMarkConfig> marks;
35};
36
37} // namespace Acl
38
39#endif /* SQUID_SRC_ACL_CONNMARK_H */
40
void parse() override
parses node representation in squid.conf; dies on failures
Definition ConnMark.cc:27
SBufList dump() const override
Definition ConnMark.cc:66
MEMPROXY_CLASS(ConnMark)
std::vector< Ip::NfMarkConfig > marks
marks/masks in configured order
Definition ConnMark.h:34
char const * typeString() const override
Definition ConnMark.cc:76
bool empty() const override
Definition ConnMark.cc:21
int match(ACLChecklist *checklist) override
Matches the actual data in checklist against this Acl::Node.
Definition ConnMark.cc:43
Definition Acl.cc:33
std::list< SBuf > SBufList
Definition forward.h:23