]> git.ipfire.org Git - thirdparty/pdns.git/blame - pdns/rec-lua-conf.hh
Merge pull request #5523 from rubenk/fix-typos-in-logmessage
[thirdparty/pdns.git] / pdns / rec-lua-conf.hh
CommitLineData
12471842
PL
1/*
2 * This file is part of PowerDNS or dnsdist.
3 * Copyright -- PowerDNS.COM B.V. and its contributors
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *
9 * In addition, for the avoidance of any doubt, permission is granted to
10 * link this program with OpenSSL and to (re)distribute the binaries
11 * produced as the result of such linking.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 */
684d5f6b 22#pragma once
23#include "sholder.hh"
24#include "sortlist.hh"
ad42489c 25#include "filterpo.hh"
aa7929a3 26#include "remote_logger.hh"
52ad9eea 27#include "validate.hh"
ad42489c 28
684d5f6b 29class LuaConfigItems
30{
31public:
32 LuaConfigItems();
33 SortList sortlist;
ad42489c 34 DNSFilterEngine dfe;
52ad9eea 35 map<DNSName,dsmap_t> dsAnchors;
1bd49828 36 map<DNSName,std::string> negAnchors;
aa7929a3 37 std::shared_ptr<RemoteLogger> protobufServer{nullptr};
4898a348 38 std::shared_ptr<RemoteLogger> outgoingProtobufServer{nullptr};
e1c8a4bb
RG
39 uint8_t protobufMaskV4{32};
40 uint8_t protobufMaskV6{128};
b790ef3d 41 bool protobufTaggedOnly{false};
684d5f6b 42};
43
44extern GlobalStateHolder<LuaConfigItems> g_luaconfs;
a4241908 45void loadRecursorLuaConfig(const std::string& fname, bool checkOnly);
684d5f6b 46