]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/ConnMark.h
Reworked packet/connection marking (#170)
[thirdparty/squid.git] / src / acl / ConnMark.h
CommitLineData
653d9927
A
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"
244da4ad 14#include "ip/NfMarkConfig.h"
653d9927
A
15#include "parser/Tokenizer.h"
16
17#include <vector>
18
19namespace Acl {
20
21class ConnMark : public ACL
22{
23 MEMPROXY_CLASS(ConnMark);
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
653d9927 33private:
244da4ad 34 std::vector<Ip::NfMarkConfig> marks; ///< marks/masks in configured order
653d9927
A
35};
36
37} // namespace Acl
38
39#endif /* SQUID_ACLCONNMARK_H */
40