]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
3 years agoAvoid Undefined Behaviour by making sure the packet size is at least 10872/head
Otto [Fri, 22 Oct 2021 09:19:59 +0000 (11:19 +0200)] 
Avoid Undefined Behaviour by making sure the packet size is at least
the size passed in

3 years agoRewrite of hashQuestion that avoids muliple burtle calls and use safer idiom
Otto Moerbeek [Thu, 26 Aug 2021 13:49:55 +0000 (15:49 +0200)] 
Rewrite of hashQuestion that avoids muliple burtle calls and use safer idiom

3 years agoMerge pull request #10646 from neheb/empla
Remi Gacogne [Tue, 19 Oct 2021 15:07:26 +0000 (17:07 +0200)] 
Merge pull request #10646 from neheb/empla

convert make_pair to emplace

3 years agoMerge pull request #10858 from rgacogne/ddist-170a2
Remi Gacogne [Tue, 19 Oct 2021 08:51:38 +0000 (10:51 +0200)] 
Merge pull request #10858 from rgacogne/ddist-170a2

dnsdist: Prepare ChangeLog and secpoll updates for 1.7.0-alpha2

3 years agoMerge pull request #10860 from Habbie/builder-no-fail-fast
Peter van Dijk [Tue, 19 Oct 2021 08:10:44 +0000 (10:10 +0200)] 
Merge pull request #10860 from Habbie/builder-no-fail-fast

gh actions: in the daily package build job, do not abort all if one failed

3 years agoMerge pull request #10861 from Habbie/auth-stat_t
Peter van Dijk [Tue, 19 Oct 2021 08:06:13 +0000 (10:06 +0200)] 
Merge pull request #10861 from Habbie/auth-stat_t

auth: include stat_t.hh in dist tarball

3 years agodnsdist: 1.7.0-alpha2 was not released on Monday, second attempt :) 10858/head
Remi Gacogne [Tue, 19 Oct 2021 06:59:16 +0000 (08:59 +0200)] 
dnsdist: 1.7.0-alpha2 was not released on Monday, second attempt :)

3 years agoconvert make_pair to emplace 10646/head
Rosen Penev [Sun, 15 Aug 2021 00:07:33 +0000 (17:07 -0700)] 
convert make_pair to emplace

emplace* forwards the arguments directly. Avoids needing make_pair.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
3 years agoMerge pull request #10859 from omoerbeek/rec-docs-underline-and-ref
Otto Moerbeek [Mon, 18 Oct 2021 18:50:11 +0000 (20:50 +0200)] 
Merge pull request #10859 from omoerbeek/rec-docs-underline-and-ref

rec: Underlining and getting refs right is hard

3 years agoMerge pull request #10856 from omoerbeek/misc-plural-s
Otto Moerbeek [Mon, 18 Oct 2021 15:42:48 +0000 (17:42 +0200)] 
Merge pull request #10856 from omoerbeek/misc-plural-s

Make addS() more versatile and use modern C++ (enable_if_t).

3 years agoauth: include stat_t.hh in dist tarball 10861/head
Peter van Dijk [Mon, 18 Oct 2021 15:28:34 +0000 (17:28 +0200)] 
auth: include stat_t.hh in dist tarball

3 years agogh actions: in the daily package build job, do not abort all if one failed 10860/head
Peter van Dijk [Mon, 18 Oct 2021 14:48:57 +0000 (16:48 +0200)] 
gh actions: in the daily package build job, do not abort all if one failed

3 years agoUnderlining and getting refs right is hard 10859/head
Otto [Mon, 18 Oct 2021 14:21:06 +0000 (16:21 +0200)] 
Underlining and getting refs right is hard

3 years agoMerge pull request #10795 from pieterlexis/ddist-rec-syslog-ident
Otto Moerbeek [Mon, 18 Oct 2021 12:15:31 +0000 (14:15 +0200)] 
Merge pull request #10795 from pieterlexis/ddist-rec-syslog-ident

Rec and dnsdist: add syslog identifier to service file

3 years agoMerge pull request #10842 from omoerbeek/rec-appliedPolicyTrigger-value
Otto Moerbeek [Mon, 18 Oct 2021 11:53:15 +0000 (13:53 +0200)] 
Merge pull request #10842 from omoerbeek/rec-appliedPolicyTrigger-value

rec: correct appliedPolicyTrigger value for IP matches

3 years agoMerge pull request #10843 from chbruyand/recursor-logs-nod
Otto Moerbeek [Mon, 18 Oct 2021 11:52:37 +0000 (13:52 +0200)] 
Merge pull request #10843 from chbruyand/recursor-logs-nod

rec: NOD - use structured logging API

3 years agoProcess review comments 10842/head
Otto [Mon, 18 Oct 2021 10:19:46 +0000 (12:19 +0200)] 
Process review comments

3 years agoMerge pull request #10841 from rgacogne/ddist-gnutls-client-creds dnsdist-1.7.0-alpha2
Remi Gacogne [Mon, 18 Oct 2021 10:16:51 +0000 (12:16 +0200)] 
Merge pull request #10841 from rgacogne/ddist-gnutls-client-creds

dnsdist: Use per-thread credentials for GnuTLS client connections

3 years agoAdd SSLKEYLOGFILE to the spell checker allow list
Remi Gacogne [Mon, 18 Oct 2021 10:04:43 +0000 (12:04 +0200)] 
Add SSLKEYLOGFILE to the spell checker allow list

3 years agodnsdist: Prepare ChangeLog and secpoll updates for 1.7.0-alpha2
Remi Gacogne [Mon, 18 Oct 2021 09:59:05 +0000 (11:59 +0200)] 
dnsdist: Prepare ChangeLog and secpoll updates for 1.7.0-alpha2

3 years agoMerge pull request #10857 from omoerbeek/test-fix-unsigned-warnings
Otto Moerbeek [Mon, 18 Oct 2021 09:33:41 +0000 (11:33 +0200)] 
Merge pull request #10857 from omoerbeek/test-fix-unsigned-warnings

Fix two unsigned warnings as seen on OpenBSD/clang

3 years agoFix two unsigned warnings as seen on OpenBSD/clang 10857/head
Otto [Mon, 18 Oct 2021 07:27:29 +0000 (09:27 +0200)] 
Fix two unsigned warnings as seen on OpenBSD/clang

3 years agoMake addS() more versatile and use modern C++ (enable_if_t). 10856/head
Otto [Mon, 18 Oct 2021 07:24:25 +0000 (09:24 +0200)] 
Make addS() more versatile and use modern C++ (enable_if_t).
Use new args pdnsutil to get primary vs primaries correct.

3 years agoMerge pull request #10851 from Habbie/fix-url
Otto Moerbeek [Fri, 15 Oct 2021 18:09:10 +0000 (20:09 +0200)] 
Merge pull request #10851 from Habbie/fix-url

recursor: fix url in socket dir log message

3 years agoMerge pull request #10853 from rgacogne/ddist-unbreak-dynblocks-unit-tests
Remi Gacogne [Fri, 15 Oct 2021 18:08:02 +0000 (20:08 +0200)] 
Merge pull request #10853 from rgacogne/ddist-unbreak-dynblocks-unit-tests

dnsdist: Unbreak the dynblock unit tests

3 years agodnsdist: Unbreak the dynblock unit tests 10853/head
Remi Gacogne [Fri, 15 Oct 2021 16:10:43 +0000 (18:10 +0200)] 
dnsdist: Unbreak the dynblock unit tests

10835 conflicted with 10833 in a way not caught by our workflow.

3 years agoMerge pull request #10835 from rgacogne/ddist-smt-reason
Remi Gacogne [Fri, 15 Oct 2021 15:32:45 +0000 (17:32 +0200)] 
Merge pull request #10835 from rgacogne/ddist-smt-reason

dnsdist: Allow setting the block reason from the SMT callback

3 years agoMerge pull request #10846 from rgacogne/ddist-shared-to-unique-structs-size
Remi Gacogne [Fri, 15 Oct 2021 15:29:44 +0000 (17:29 +0200)] 
Merge pull request #10846 from rgacogne/ddist-shared-to-unique-structs-size

dnsdist: Replace shared by unique ptrs, reduce structs size

3 years agorec: only initialize NOD logger if it might be used 10843/head
Charles-Henri Bruyand [Fri, 15 Oct 2021 14:11:45 +0000 (16:11 +0200)] 
rec: only initialize NOD logger if it might be used

3 years agorecursor: fix url in socket dir log message 10851/head
Peter van Dijk [Fri, 15 Oct 2021 12:55:49 +0000 (14:55 +0200)] 
recursor: fix url in socket dir log message

3 years agoAlso moved setting of hit value to find functions mostly.
Otto [Fri, 15 Oct 2021 10:07:29 +0000 (12:07 +0200)] 
Also moved setting of hit value to find functions mostly.

In a few cases (wildcard processing) the matched value is not the
hit as seen by the find function and an overide is needed.

3 years agoProcess review comments and extend unit tests
Otto [Fri, 15 Oct 2021 09:48:20 +0000 (11:48 +0200)] 
Process review comments and extend unit tests

3 years agodnsdist: Fix formatting 10846/head
Remi Gacogne [Fri, 15 Oct 2021 08:34:59 +0000 (10:34 +0200)] 
dnsdist: Fix formatting

3 years agoMerge pull request #10848 from omoerbeek/dnsdist-includedir-recursion
Otto Moerbeek [Fri, 15 Oct 2021 08:02:54 +0000 (10:02 +0200)] 
Merge pull request #10848 from omoerbeek/dnsdist-includedir-recursion

dnsdist: Only set recursion protection once we know we do not return

3 years agoOnly set recursion protection once we know we do not return because of an error. 10848/head
Otto [Fri, 15 Oct 2021 06:33:17 +0000 (08:33 +0200)] 
Only set recursion protection once we know we do not return because of an error.

Also catch exception thrown by executeCode.

3 years agoMerge pull request #10827 from Habbie/gh-actions-3
Peter van Dijk [Thu, 14 Oct 2021 14:25:40 +0000 (16:25 +0200)] 
Merge pull request #10827 from Habbie/gh-actions-3

more GH actions work

3 years agoMerge pull request #10847 from omoerbeek/update-dnsmessage.proto
Otto Moerbeek [Thu, 14 Oct 2021 14:03:47 +0000 (16:03 +0200)] 
Merge pull request #10847 from omoerbeek/update-dnsmessage.proto

Sync dnsmessage.proto

3 years agoSync with https://github.com/PowerDNS/dnsmessage 10847/head
Otto [Thu, 14 Oct 2021 12:24:07 +0000 (14:24 +0200)] 
Sync with https://github.com/PowerDNS/dnsmessage

3 years agogh actions: ixfrdist, auth-algorithms, auth-py, auth gsqlite3, auth-nobackend 10827/head
Peter van Dijk [Fri, 8 Oct 2021 11:23:48 +0000 (13:23 +0200)] 
gh actions: ixfrdist, auth-algorithms, auth-py, auth gsqlite3, auth-nobackend

also, remove dnsdist from CircleCI as it's already fully covered in GH Actions now

3 years agoMerge pull request #10567 from omoerbeek/rec-eventtrace
Otto Moerbeek [Thu, 14 Oct 2021 12:19:13 +0000 (14:19 +0200)] 
Merge pull request #10567 from omoerbeek/rec-eventtrace

Rec: eventtrace

3 years agowhitespace in dnsmessage.proto 10567/head
Otto [Thu, 14 Oct 2021 10:57:12 +0000 (12:57 +0200)] 
whitespace in dnsmessage.proto

3 years agoFix rebase botch that partially undid PR #10797
Otto [Thu, 14 Oct 2021 10:30:25 +0000 (12:30 +0200)] 
Fix rebase botch that partially undid PR #10797

3 years agodnsdist: Replace shared by unique ptrs, reduce structs size
Remi Gacogne [Thu, 14 Oct 2021 08:41:58 +0000 (10:41 +0200)] 
dnsdist: Replace shared by unique ptrs, reduce structs size

This commit replaces the DNSCrypt and QTaq shared pointers by unique ones,
since these are not actually shared. This should improve performance a
bit since we no longer need to clear a cache line for the reference
counter. It also reduces the size of the IDState and DNSQuestion structures
by a few bytes.
It also removes a few fields in the DOHUnit structure that are redundant
with ones in the embedded IDState structure.
The rest of the commit re-order fields in various structures to prevent
wasted space due to padding, reducing the memory footprint of these structs.

On x86_64 (in bytes):

IDState 344 -> 328
DOHUnit 712 -> 632
TCPQuery 416 -> 400
IncomingTCPConnectionState 968 -> 944
TCPConnectionToBackend 728 -> 712
DownstreamState 2368 -> 2240

3 years agoMerge pull request #10782 from rgacogne/ddist-more-http2-coverage
Remi Gacogne [Thu, 14 Oct 2021 07:35:37 +0000 (09:35 +0200)] 
Merge pull request #10782 from rgacogne/ddist-more-http2-coverage

dnsdist: Improve the coverage of the outgoing DoH code

3 years agoMerge pull request #10844 from rgacogne/ddist-clear-udp-states-tcp-only-backend
Remi Gacogne [Thu, 14 Oct 2021 07:34:54 +0000 (09:34 +0200)] 
Merge pull request #10844 from rgacogne/ddist-clear-udp-states-tcp-only-backend

dnsdist: Clear the UDP states of TCP-only backends

3 years agodnsdist: Clear the UDP states of TCP-only backends 10844/head
Remi Gacogne [Wed, 13 Oct 2021 16:06:28 +0000 (18:06 +0200)] 
dnsdist: Clear the UDP states of TCP-only backends

3 years agorec: NOD - use structured logging API
Charles-Henri Bruyand [Tue, 12 Oct 2021 09:36:07 +0000 (11:36 +0200)] 
rec: NOD - use structured logging API

3 years agoAdd regression test
Otto [Wed, 13 Oct 2021 14:24:28 +0000 (16:24 +0200)] 
Add regression test

3 years agoMerge pull request #10840 from omoerbeek/rec-test-extra-records-in-answer
Otto Moerbeek [Wed, 13 Oct 2021 13:59:00 +0000 (15:59 +0200)] 
Merge pull request #10840 from omoerbeek/rec-test-extra-records-in-answer

rec: Add tests (with and without DNSSEC validation) for records in the answer section not asked for

3 years agoPut the right string into appliedPolicyTrigger for Netmask matching rules
Otto [Wed, 13 Oct 2021 13:45:16 +0000 (15:45 +0200)] 
Put the right string into appliedPolicyTrigger for Netmask matching rules
(ns, client, response). The NetMaskTree has it.

3 years agodnsdist: Add XForwarded to the spell checker list 10782/head
Remi Gacogne [Thu, 30 Sep 2021 14:57:47 +0000 (16:57 +0200)] 
dnsdist: Add XForwarded to the spell checker list

3 years agodnsdist: Add regression tests for outgoing DoH health-checks and X-Forwarded-* headers
Remi Gacogne [Thu, 30 Sep 2021 14:52:59 +0000 (16:52 +0200)] 
dnsdist: Add regression tests for outgoing DoH health-checks and X-Forwarded-* headers

3 years agodnsdist: Document addXForwardedHeaders on DoH backends
Remi Gacogne [Thu, 30 Sep 2021 14:51:58 +0000 (16:51 +0200)] 
dnsdist: Document addXForwardedHeaders on DoH backends

3 years agodnsdist: Clean up Lua objects before exiting, in coverage mode
Remi Gacogne [Thu, 30 Sep 2021 13:49:23 +0000 (15:49 +0200)] 
dnsdist: Clean up Lua objects before exiting, in coverage mode

3 years agodnsdist: Better handling of exceptions in the TCP/DoH workers
Remi Gacogne [Thu, 30 Sep 2021 13:42:25 +0000 (15:42 +0200)] 
dnsdist: Better handling of exceptions in the TCP/DoH workers

Exceptions might be raised when the process is exiting because the
internal pipes have been closed by the remote end, for example when
coverage mode is enabled.

3 years agoMerge pull request #10775 from rgacogne/ddist-fix-unit-tests-connectivity
Remi Gacogne [Wed, 13 Oct 2021 13:18:40 +0000 (15:18 +0200)] 
Merge pull request #10775 from rgacogne/ddist-fix-unit-tests-connectivity

dnsdist: Fix the unit tests to handle v4-only or v6-only connectivity

3 years agoMerge pull request #10823 from rgacogne/ddist-outgoing-release-buffer-renego
Remi Gacogne [Wed, 13 Oct 2021 13:17:53 +0000 (15:17 +0200)] 
Merge pull request #10823 from rgacogne/ddist-outgoing-release-buffer-renego

dnsdist: Disable TLS renegotiation, release buffers for outgoing TLS

3 years agoMerge pull request #10822 from rgacogne/ddist-document-dynblock-ringbuffer-link
Remi Gacogne [Wed, 13 Oct 2021 13:16:56 +0000 (15:16 +0200)] 
Merge pull request #10822 from rgacogne/ddist-document-dynblock-ringbuffer-link

dnsdist: Document the ringbuffers' size impacts Dynamic Blocks

3 years agoMerge pull request #10821 from rgacogne/rename-queued-processed-remote-logger
Remi Gacogne [Wed, 13 Oct 2021 13:16:44 +0000 (15:16 +0200)] 
Merge pull request #10821 from rgacogne/rename-queued-processed-remote-logger

Rename the 'queued' metric of the Remote Logger to 'processed'

3 years agoMerge pull request #10820 from rgacogne/ddist-add-hashed-changelog-upgrade
Remi Gacogne [Wed, 13 Oct 2021 13:16:25 +0000 (15:16 +0200)] 
Merge pull request #10820 from rgacogne/ddist-add-hashed-changelog-upgrade

dnsdist: Add #10157 to the upgrade guide and the 1.7.0-alpha1 ChangeLog

3 years agoMerge pull request #10836 from rgacogne/rec-no-false-sharing
Otto Moerbeek [Wed, 13 Oct 2021 12:36:09 +0000 (14:36 +0200)] 
Merge pull request #10836 from rgacogne/rec-no-false-sharing

rec: Prevent false sharing for the recursor's metrics

3 years agoFix botch spotted by rgacogne: setup the part of the protobuf message that
Otto [Wed, 13 Oct 2021 07:19:19 +0000 (09:19 +0200)] 
Fix botch spotted by rgacogne: setup the part of the protobuf message that
is copied to the packet cache *before* we do the copy.

3 years agoCorrect type for timestamp
Otto [Fri, 17 Sep 2021 13:45:39 +0000 (15:45 +0200)] 
Correct type for timestamp

3 years agoProcess review comments: move semantics, more general event names and
Otto [Fri, 17 Sep 2021 09:38:07 +0000 (11:38 +0200)] 
Process review comments: move semantics, more general event names and
re-adjust timebase if an event is added before the current base.

3 years agoUpdate docs now that a few things have changed.
Otto [Wed, 15 Sep 2021 11:29:06 +0000 (13:29 +0200)] 
Update docs now that a few things have changed.

3 years agoAllow for a custom eventtype, with a user-specified name
Otto [Wed, 15 Sep 2021 09:02:20 +0000 (11:02 +0200)] 
Allow for a custom eventtype, with a user-specified name

3 years agoMove timestamps to a signed type
Otto [Wed, 15 Sep 2021 08:20:20 +0000 (10:20 +0200)] 
Move timestamps to a signed type

3 years agoComments in .proto file
Otto [Wed, 15 Sep 2021 08:10:26 +0000 (10:10 +0200)] 
Comments in .proto file

3 years agoDocs for event tracing
Otto [Mon, 23 Aug 2021 10:07:08 +0000 (12:07 +0200)] 
Docs for event tracing

3 years agoBasic runtime global enabling/disabling of event traces via setting and rec_control
Otto [Thu, 19 Aug 2021 09:46:49 +0000 (11:46 +0200)] 
Basic runtime global enabling/disabling of event traces via setting and rec_control

3 years agoAdd explicit uint32_t and int32_t setter, GCC thinks it is needed
Otto [Tue, 6 Jul 2021 14:44:08 +0000 (16:44 +0200)] 
Add explicit uint32_t and int32_t  setter, GCC thinks it is needed

3 years agoMove the sending of protobuf resp down so it has all the events
Otto [Tue, 6 Jul 2021 11:27:26 +0000 (13:27 +0200)] 
Move the sending of protobuf resp down so it has all the events

3 years agoAdd pre gettagffi trace points
Otto [Tue, 6 Jul 2021 10:58:50 +0000 (12:58 +0200)] 
Add pre gettagffi trace points

3 years agoStart of protobuf handling
Otto [Tue, 6 Jul 2021 09:20:53 +0000 (11:20 +0200)] 
Start of protobuf handling

3 years agoStart of eventTrace code.
Otto [Wed, 16 Jun 2021 10:34:01 +0000 (12:34 +0200)] 
Start of eventTrace code.

Missing: config, many trace points, protobuf export.

3 years agodnsdist: Use per-thread credentials for GnuTLS client connections 10841/head
Remi Gacogne [Wed, 13 Oct 2021 12:03:45 +0000 (14:03 +0200)] 
dnsdist: Use per-thread credentials for GnuTLS client connections

It looks like there is a race in some versions when the credentials
are shared between several threads opening TLS client connections.

3 years agoAdd tests (with and without DNSSEC validation) for records in the answer section... 10840/head
Otto [Wed, 13 Oct 2021 11:28:03 +0000 (13:28 +0200)] 
Add tests (with and without DNSSEC validation) for records in the answer section not asked for

Fixes #6332

3 years agoMerge pull request #10797 from omoerbeek/rec-pc-ttl-no-records
Otto Moerbeek [Wed, 13 Oct 2021 10:32:16 +0000 (12:32 +0200)] 
Merge pull request #10797 from omoerbeek/rec-pc-ttl-no-records

rec: Use packetcache-servfail-ttl for all packet cache entries considered an error reply

3 years agoAdd missing include 10836/head
Otto [Wed, 13 Oct 2021 10:26:16 +0000 (12:26 +0200)] 
Add missing include

3 years agoConvert more atomics to stat_t and eliminate AtomicCounter form the recursor
Otto [Wed, 13 Oct 2021 09:12:28 +0000 (11:12 +0200)] 
Convert more atomics to stat_t and eliminate AtomicCounter form the recursor
(except in cases that are shared by with auth).

I changed two AtomicCounters to atomic<int32>; their range is limited and
they are not updated very frequently.

3 years agoMerge pull request #10837 from gmelikov/examples
Otto Moerbeek [Wed, 13 Oct 2021 08:01:00 +0000 (10:01 +0200)] 
Merge pull request #10837 from gmelikov/examples

Recursor: clean up kv-example-script.lua

3 years agoMerge pull request #10832 from phonedph1/concurrent-idea
Remi Gacogne [Wed, 13 Oct 2021 07:24:47 +0000 (09:24 +0200)] 
Merge pull request #10832 from phonedph1/concurrent-idea

dnsdist: Rule for basing decisions on outstanding queries in a pool

3 years agoMerge pull request #10838 from omoerbeek/rec-structlog-backward
Otto Moerbeek [Tue, 12 Oct 2021 15:42:16 +0000 (17:42 +0200)] 
Merge pull request #10838 from omoerbeek/rec-structlog-backward

rec: A compatibiliy macro to have bold old and new (structured) logging.

3 years agoMerge pull request #10839 from omoerbeek/rec-rpz-extendedErrorCode-docs
Otto Moerbeek [Tue, 12 Oct 2021 15:42:01 +0000 (17:42 +0200)] 
Merge pull request #10839 from omoerbeek/rec-rpz-extendedErrorCode-docs

rec: Provide a little example for extendedErrorCode/extendedErrorExtra

3 years agotest case 10832/head
ph1 [Tue, 12 Oct 2021 15:29:34 +0000 (09:29 -0600)] 
test case

3 years agotypo; update version; actually include the Lua binding
ph1 [Tue, 12 Oct 2021 15:29:23 +0000 (09:29 -0600)] 
typo; update version; actually include the Lua binding

3 years agotypo 10797/head
Otto Moerbeek [Tue, 12 Oct 2021 13:49:56 +0000 (15:49 +0200)] 
typo

Co-authored-by: Remi Gacogne <github@coredump.fr>
3 years agoMerge pull request #10814 from chbruyand/dnsdist-setednsoptionaction
Remi Gacogne [Tue, 12 Oct 2021 12:56:37 +0000 (14:56 +0200)] 
Merge pull request #10814 from chbruyand/dnsdist-setednsoptionaction

dnsdist: add lua support for SetEDNSOptionAction

3 years agoMerge pull request #10833 from chbruyand/dnsdist-protocol-grepq
Remi Gacogne [Tue, 12 Oct 2021 12:56:13 +0000 (14:56 +0200)] 
Merge pull request #10833 from chbruyand/dnsdist-protocol-grepq

dnsdist: add incoming and outgoing protocols to grepq

3 years agoSpelling: add EDE as a word 10839/head
Otto [Tue, 12 Oct 2021 12:45:47 +0000 (14:45 +0200)] 
Spelling: add EDE as a word

3 years agoTell the default value inn the upgrade notes 10838/head
Otto [Tue, 12 Oct 2021 12:40:35 +0000 (14:40 +0200)] 
Tell the default value inn the upgrade notes

3 years agoProvide a little example for extendedErrorCode/extendedErrorExtra
Otto [Tue, 12 Oct 2021 11:47:22 +0000 (13:47 +0200)] 
Provide a little example for extendedErrorCode/extendedErrorExtra

3 years agoAdd setting to switch to non-structed logging
Otto [Tue, 12 Oct 2021 10:19:55 +0000 (12:19 +0200)] 
Add setting to switch to non-structed logging

3 years agokv-example-script.lua: clean up spaces + empty lines 10837/head
George Melikov [Mon, 11 Oct 2021 16:01:23 +0000 (19:01 +0300)] 
kv-example-script.lua: clean up spaces + empty lines

3 years agoA compatibiliy macro to have both old and new logging.
Otto [Wed, 6 Oct 2021 14:18:15 +0000 (16:18 +0200)] 
A compatibiliy macro to have both old and new logging.

Existing logging is routed to old-style to avoid breaking log scanner
tools. New logging can use the structured logging API.

3 years agokv-example-script.lua: use pdnslog() instead of print()
George Melikov [Mon, 11 Oct 2021 15:57:57 +0000 (18:57 +0300)] 
kv-example-script.lua: use pdnslog() instead of print()

3 years agoMerge pull request #1 from rgacogne/dnsdist-protocol-grepq 10833/head
Charles-Henri Bruyand [Mon, 11 Oct 2021 14:19:17 +0000 (16:19 +0200)] 
Merge pull request #1 from rgacogne/dnsdist-protocol-grepq

 dnsdist: Prevent implicit conversions between dnsdist::Protocol and uint8_t

3 years agodnsdist: Return a pretty protocol string for DNSResponse objects
Remi Gacogne [Mon, 11 Oct 2021 14:00:19 +0000 (16:00 +0200)] 
dnsdist: Return a pretty protocol string for DNSResponse objects

3 years agodnsdist: Prevent implicit conversions between dnsdist::Protocol and uint8_t
Remi Gacogne [Mon, 11 Oct 2021 13:52:18 +0000 (15:52 +0200)] 
dnsdist: Prevent implicit conversions between dnsdist::Protocol and uint8_t

This commit makes sure that we always use the dnsdist::Protocol type,
and that we cannot easily convert to or from a different type by mistake.

C++ really dropped the ball by making it impossible to declare methods
on the 'enum class' that solved the issue of making regular enums
implicitly convertible to int and back, thus making it possible to
assign and compare different types of enums together, as well as
enums and ints.
The result is that we are stuck with declaring classes to hold our
methods, along with a lot of plumbing to make sure that we can convert
in some cases but not allow obvious mistakes from happening.

3 years agodnsdist: Allow setting the block reason from the SMT callback 10835/head
Remi Gacogne [Mon, 11 Oct 2021 12:19:31 +0000 (14:19 +0200)] 
dnsdist: Allow setting the block reason from the SMT callback