]> git.ipfire.org Git - thirdparty/pdns.git/commit - pdns/pdns_recursor.cc
rec: Refactor Protobuf options, add query/response selection
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 31 May 2018 13:32:14 +0000 (15:32 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 3 Aug 2018 15:35:19 +0000 (17:35 +0200)
commitf1c7929abb7a05c273b54b02a488707dc9b818f6
tree9862d93599c15b5d4b0ed902c1888674a7f75c56
parent5b78c5012ed8e794aa5ae16da1f4ca9c3f056154
rec: Refactor Protobuf options, add query/response selection

- Turn the protobuf options into a table because there are already
too many of them
- Split the masks applied to the initiator to a separate
`setProtobufMasks` directive
- Add the possibility to log only queries, or only responses
- Add the possibility to select queries (FFI only) and responses
for export from the Lua hooks
- Add regression tests for the protobuf features
12 files changed:
pdns/lua-recursor4-ffi.hh
pdns/lua-recursor4.cc
pdns/lua-recursor4.hh
pdns/pdns_recursor.cc
pdns/rec-lua-conf.cc
pdns/rec-lua-conf.hh
pdns/recursordist/docs/lua-config/protobuf.rst
pdns/recursordist/docs/lua-scripting/dq.rst
regression-tests.recursor-dnssec/.gitignore
regression-tests.recursor-dnssec/requirements.txt
regression-tests.recursor-dnssec/runtests
regression-tests.recursor-dnssec/test_Protobuf.py [new file with mode: 0644]