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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors