]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
22 months agoBe even more lenient in allowing timing differences 13237/head
Otto Moerbeek [Tue, 12 Sep 2023 10:11:29 +0000 (12:11 +0200)] 
Be even more lenient in allowing timing differences

22 months agoIntroduce randomness in test order to catch hidden dependencies between unit-tests
Otto Moerbeek [Tue, 12 Sep 2023 09:14:16 +0000 (11:14 +0200)] 
Introduce randomness in test order to catch hidden dependencies between unit-tests

Also be a bit more lenient in a recently introduced test that checks timing
of some aggressive cache manipulations.

22 months agoMerge pull request #13210 from omoerbeek/rec-systemd-unit-nss
Otto Moerbeek [Mon, 11 Sep 2023 10:44:46 +0000 (12:44 +0200)] 
Merge pull request #13210 from omoerbeek/rec-systemd-unit-nss

rec: remove Before=nss-lookup.target line from unit file

22 months agoMerge pull request #13209 from omoerbeek/rec-aggr-cache-pruning
Otto Moerbeek [Mon, 11 Sep 2023 10:44:31 +0000 (12:44 +0200)] 
Merge pull request #13209 from omoerbeek/rec-aggr-cache-pruning

rec: make aggressive cache pruning more effective and more fair

22 months agoApply typo-in-comment fixes from code review 13209/head
Otto Moerbeek [Mon, 11 Sep 2023 10:00:20 +0000 (12:00 +0200)] 
Apply typo-in-comment fixes from code review

Co-authored-by: Remi Gacogne <github@coredump.fr>
22 months agoMerge pull request #13227 from rgacogne/ddist-fix-unit-tests-on-el-with-lto
Remi Gacogne [Mon, 11 Sep 2023 08:03:22 +0000 (10:03 +0200)] 
Merge pull request #13227 from rgacogne/ddist-fix-unit-tests-on-el-with-lto

dnsdist: Fix unit tests for incoming DoH w/ nghttp2

22 months agoMerge pull request #13229 from appliedprivacy/patch-2
Remi Gacogne [Mon, 11 Sep 2023 07:28:22 +0000 (09:28 +0200)] 
Merge pull request #13229 from appliedprivacy/patch-2

docu typo fix: latency-doh-avg 100k -> 1M

22 months agoMerge pull request #13230 from mikedamm/patch-1
Remi Gacogne [Mon, 11 Sep 2023 07:26:22 +0000 (09:26 +0200)] 
Merge pull request #13230 from mikedamm/patch-1

Update documentation to point to proper function

22 months agoUpdate documentation to point to proper function 13230/head
Mike Damm [Mon, 11 Sep 2023 00:30:59 +0000 (17:30 -0700)] 
Update documentation to point to proper function

Additional parameters to webserver() are now depreciated. Update documentation to refer to setWebserverConfig()

22 months agolatency-doh-avg 100k -> 1M typo 13229/head
appliedprivacy [Sat, 9 Sep 2023 10:51:54 +0000 (10:51 +0000)] 
latency-doh-avg 100k -> 1M typo

22 months agodnsdist: Fix unit tests for incoming DoH w/ nghttp2 13227/head
Remi Gacogne [Fri, 8 Sep 2023 14:19:41 +0000 (16:19 +0200)] 
dnsdist: Fix unit tests for incoming DoH w/ nghttp2

These tests were failing on EL with LTO enabled, and passing
everywhere else. It turns out that we did not properly reset
the `s_processQuery` hack that we used in these tests to
simulate the policy decision (rules and actions), and thus
inherited what the last test set it to instead of the default
(dropping queries), which was very unexpected.

22 months agoMerge pull request #13225 from jsoref/gha-action-log-title
Peter van Dijk [Fri, 8 Sep 2023 12:44:34 +0000 (14:44 +0200)] 
Merge pull request #13225 from jsoref/gha-action-log-title

Fix GitHub Action log title reporting

22 months agoMerge pull request #13224 from rgacogne/fix-provenance-upload-dir
Remi Gacogne [Fri, 8 Sep 2023 12:29:37 +0000 (14:29 +0200)] 
Merge pull request #13224 from rgacogne/fix-provenance-upload-dir

build-packages: Upload provenance attestations to the correct dir

22 months agoFix GitHub Action log title reporting 13225/head
Josh Soref [Fri, 8 Sep 2023 11:59:27 +0000 (07:59 -0400)] 
Fix GitHub Action log title reporting

Follow-up to #13068

22 months agoMerge pull request #13179 from rgacogne/ddist-1.8.1-changelog-secpoll
Remi Gacogne [Fri, 8 Sep 2023 11:51:25 +0000 (13:51 +0200)] 
Merge pull request #13179 from rgacogne/ddist-1.8.1-changelog-secpoll

dnsdist: Add ChangeLog and secpoll update for 1.8.1

22 months agobuild-packages: Upload provenance attestations to the correct dir 13224/head
Remi Gacogne [Fri, 8 Sep 2023 10:09:57 +0000 (12:09 +0200)] 
build-packages: Upload provenance attestations to the correct dir

22 months agoMerge pull request #13182 from rgacogne/ddist-test-metrics-with-recvmmsg
Remi Gacogne [Thu, 7 Sep 2023 12:15:40 +0000 (14:15 +0200)] 
Merge pull request #13182 from rgacogne/ddist-test-metrics-with-recvmmsg

dnsdist: Also test metrics with recvmmsg support enabled

22 months agoMerge pull request #13223 from rgacogne/fix-dnsdist-fuzz-target-without-arc4random
Remi Gacogne [Thu, 7 Sep 2023 12:15:24 +0000 (14:15 +0200)] 
Merge pull request #13223 from rgacogne/fix-dnsdist-fuzz-target-without-arc4random

dnsdist: dnsdist's fuzzing target needs to link against arc4random

22 months agodnsdist: dnsdist's fuzzing target needs to link against arc4random 13223/head
Remi Gacogne [Thu, 7 Sep 2023 11:08:27 +0000 (13:08 +0200)] 
dnsdist: dnsdist's fuzzing target needs to link against arc4random

On systems that do not provide arc4random we actually need to link
the internal library in.

22 months agoMerge pull request #13221 from rgacogne/del-fuzz_target_dnsdistcache
Remi Gacogne [Thu, 7 Sep 2023 10:57:13 +0000 (12:57 +0200)] 
Merge pull request #13221 from rgacogne/del-fuzz_target_dnsdistcache

dnsdist: Remove the fuzz_target_dnsdistcache binary

22 months agoMerge pull request #12678 from rgacogne/ddist-incoming-nghttp2
Remi Gacogne [Thu, 7 Sep 2023 10:24:23 +0000 (12:24 +0200)] 
Merge pull request #12678 from rgacogne/ddist-incoming-nghttp2

dnsdist: Add support for incoming DoH via nghttp2

22 months agodnsdist: Set the release date for 1.8.1 in the ChangeLog 13179/head
Remi Gacogne [Thu, 7 Sep 2023 10:09:20 +0000 (12:09 +0200)] 
dnsdist: Set the release date for 1.8.1 in the ChangeLog

22 months agodnsdist: Fix spell checking issues
Remi Gacogne [Mon, 28 Aug 2023 09:03:36 +0000 (11:03 +0200)] 
dnsdist: Fix spell checking issues

22 months agodnsdist: Add ChangeLog and secpoll update for 1.8.1
Remi Gacogne [Mon, 28 Aug 2023 08:57:04 +0000 (10:57 +0200)] 
dnsdist: Add ChangeLog and secpoll update for 1.8.1

22 months agodnsdist: Remove the fuzz_target_dnsdistcache binary 13221/head
Remi Gacogne [Thu, 7 Sep 2023 09:51:50 +0000 (11:51 +0200)] 
dnsdist: Remove the fuzz_target_dnsdistcache binary

22 months agoMerge pull request #13145 from rgacogne/fuzz-targets-dist
Remi Gacogne [Thu, 7 Sep 2023 09:36:24 +0000 (11:36 +0200)] 
Merge pull request #13145 from rgacogne/fuzz-targets-dist

Fix building our fuzzing targets from a dist tarball

22 months agodnsdist: Only compile and link doh.cc when h2o support is enabled 12678/head
Remi Gacogne [Thu, 7 Sep 2023 09:31:24 +0000 (11:31 +0200)] 
dnsdist: Only compile and link doh.cc when h2o support is enabled

22 months agotcpiohandler: Make it clearer which TLS implementation is preferred
Remi Gacogne [Thu, 7 Sep 2023 09:30:17 +0000 (11:30 +0200)] 
tcpiohandler: Make it clearer which TLS implementation is preferred

22 months agoMerge pull request #13215 from Habbie/auth-4.8.2-docs
Peter van Dijk [Thu, 7 Sep 2023 09:09:02 +0000 (11:09 +0200)] 
Merge pull request #13215 from Habbie/auth-4.8.2-docs

auth-4.8.2: secpoll&docs

22 months agodnsdist: Unbreak incoming DoH w/ h2o
Remi Gacogne [Fri, 18 Aug 2023 08:47:47 +0000 (10:47 +0200)] 
dnsdist: Unbreak incoming DoH w/ h2o

22 months agodnsdist: Apply suggestions from Charles-Henri Bruyand's review (thanks!)
Remi Gacogne [Fri, 18 Aug 2023 06:53:16 +0000 (08:53 +0200)] 
dnsdist: Apply suggestions from Charles-Henri Bruyand's review (thanks!)

22 months agodnsdist: Fix a typo (HTTP/1->2) in the DoH doc, as reported by Frank Louwers (thanks!)
Remi Gacogne [Mon, 14 Aug 2023 09:21:39 +0000 (11:21 +0200)] 
dnsdist: Fix a typo (HTTP/1->2) in the DoH doc, as reported by Frank Louwers (thanks!)

22 months agodnsdist: Fix formatting in test-dnsdistnghttp2-in_cc.cc
Remi Gacogne [Tue, 1 Aug 2023 09:32:38 +0000 (11:32 +0200)] 
dnsdist: Fix formatting in test-dnsdistnghttp2-in_cc.cc

22 months agodnsdist: Delint test-dnsdistnghttp2-in_cc.cc and dnsdist-nghttp2.cc
Remi Gacogne [Tue, 1 Aug 2023 09:26:30 +0000 (11:26 +0200)] 
dnsdist: Delint test-dnsdistnghttp2-in_cc.cc and dnsdist-nghttp2.cc

22 months agodnsdist: Fix spelling issues
Remi Gacogne [Fri, 21 Jul 2023 17:19:15 +0000 (19:19 +0200)] 
dnsdist: Fix spelling issues

22 months agodnsdist: Document the h2o -> nghttp2 upgrade path
Remi Gacogne [Fri, 21 Jul 2023 15:53:34 +0000 (17:53 +0200)] 
dnsdist: Document the h2o -> nghttp2 upgrade path

22 months agodnsdist: Remove unused function in outgoing DoH
Remi Gacogne [Fri, 7 Jul 2023 15:16:02 +0000 (17:16 +0200)] 
dnsdist: Remove unused function in outgoing DoH

22 months agodnsdist: Better logging of backend server identity
Remi Gacogne [Thu, 20 Jul 2023 08:07:38 +0000 (10:07 +0200)] 
dnsdist: Better logging of backend server identity

22 months agodnsdist: Remove TCPIOHandler::hasBufferedData() since we cannot rely on it
Remi Gacogne [Mon, 17 Jul 2023 14:59:48 +0000 (16:59 +0200)] 
dnsdist: Remove TCPIOHandler::hasBufferedData() since we cannot rely on it

22 months agodnsdist: Fix incoming DoT when OpenSSL's read-ahead mode is enabled
Remi Gacogne [Mon, 17 Jul 2023 14:58:25 +0000 (16:58 +0200)] 
dnsdist: Fix incoming DoT when OpenSSL's read-ahead mode is enabled

22 months agodnsdist: Enable readAhead by default for TLS and DOH frontends
Remi Gacogne [Thu, 13 Jul 2023 15:23:22 +0000 (17:23 +0200)] 
dnsdist: Enable readAhead by default for TLS and DOH frontends

22 months agodnsdist: Document the new options to add{DOH,TLS}Local
Remi Gacogne [Thu, 13 Jul 2023 15:23:00 +0000 (17:23 +0200)] 
dnsdist: Document the new options to add{DOH,TLS}Local

22 months agodnsdist: Give the mock Proxy Protocol proxy some time to start
Remi Gacogne [Tue, 18 Jul 2023 12:37:16 +0000 (14:37 +0200)] 
dnsdist: Give the mock Proxy Protocol proxy some time to start

22 months agodnsdist: Add a test for DoH incoming proxy protocol inside of TLS
Remi Gacogne [Thu, 13 Jul 2023 14:15:48 +0000 (16:15 +0200)] 
dnsdist: Add a test for DoH incoming proxy protocol inside of TLS

22 months agodnsdist: Add a test for DoH incoming proxy protocol outside of TLS
Remi Gacogne [Thu, 13 Jul 2023 12:45:38 +0000 (14:45 +0200)] 
dnsdist: Add a test for DoH incoming proxy protocol outside of TLS

22 months agodnsdist: Add support for incoming proxy protocol outside the TLS layer
Remi Gacogne [Wed, 12 Jul 2023 15:46:57 +0000 (17:46 +0200)] 
dnsdist: Add support for incoming proxy protocol outside the TLS layer

22 months agodnsdist: Simplify I/O handling for incoming H2 w/ nghttp2
Remi Gacogne [Wed, 12 Jul 2023 12:41:31 +0000 (14:41 +0200)] 
dnsdist: Simplify I/O handling for incoming H2 w/ nghttp2

22 months agodnsdist: Fix timeout handling for incoming H2 w/ nghttp2
Remi Gacogne [Wed, 12 Jul 2023 12:40:34 +0000 (14:40 +0200)] 
dnsdist: Fix timeout handling for incoming H2 w/ nghttp2

22 months agodnsdist: Add unit and regression tests for incoming DoH w/ nghttp2
Remi Gacogne [Fri, 30 Jun 2023 15:49:35 +0000 (17:49 +0200)] 
dnsdist: Add unit and regression tests for incoming DoH w/ nghttp2

It is quite likely that the underlying TLS layer has buffered some
data already, so we need to consume it before trying to poll the
socket.

22 months agodnsdist: Make clang-tidy happy
Remi Gacogne [Thu, 22 Jun 2023 10:26:04 +0000 (12:26 +0200)] 
dnsdist: Make clang-tidy happy

22 months agodnsdist: Implement read-ahead support for incoming TLS connections
Remi Gacogne [Wed, 21 Jun 2023 08:55:28 +0000 (10:55 +0200)] 
dnsdist: Implement read-ahead support for incoming TLS connections

Read-ahead instructs OpenSSL to read more than the number of bytes
we requested from the incoming connection, if possible, and to buffer
it. This provides a huge performance boost by reducing the number
of syscalls because in most cases the data is already available on
the socket to be read even if we cannot know that yet without reading
the data length.
There are two drawbacks:
- we can keep reading on a connection in a loop as long as there is
  data available, which should be prevented by our number of concurrent
  requests limit ;
- we need to always try to read all the data available before asking
  the kernel to wake us up when the socket is readable, because the
  data buffered by OpenSSL is obviously not visible to the kernel so
  we could wait forever.

22 months agodnsdist: Test both incoming DoH implementations for TLS resumption
Remi Gacogne [Mon, 27 Mar 2023 12:48:19 +0000 (14:48 +0200)] 
dnsdist: Test both incoming DoH implementations for TLS resumption

22 months agodnsdist: Test both incoming DoH implementations in ProxyProtocol tests
Remi Gacogne [Mon, 27 Mar 2023 12:30:57 +0000 (14:30 +0200)] 
dnsdist: Test both incoming DoH implementations in ProxyProtocol tests

22 months agodnsdist: Test both incoming DoH implementations in Protobuf tests
Remi Gacogne [Mon, 27 Mar 2023 11:54:49 +0000 (13:54 +0200)] 
dnsdist: Test both incoming DoH implementations in Protobuf tests

22 months agodnsdist: Test both incoming DoH implementations in OCSP tests
Remi Gacogne [Mon, 27 Mar 2023 11:54:28 +0000 (13:54 +0200)] 
dnsdist: Test both incoming DoH implementations in OCSP tests

22 months agodnsdist: Test both incoming DoH implementations in Async tests
Remi Gacogne [Mon, 27 Mar 2023 11:42:08 +0000 (13:42 +0200)] 
dnsdist: Test both incoming DoH implementations in Async tests

22 months agodnsdist: Enable h2o in our workflows since it is now optional
Remi Gacogne [Fri, 24 Mar 2023 17:12:26 +0000 (18:12 +0100)] 
dnsdist: Enable h2o in our workflows since it is now optional

22 months agodnsdist: Check both h2o and nghttp2 in the DoH regression tests
Remi Gacogne [Fri, 24 Mar 2023 17:08:14 +0000 (18:08 +0100)] 
dnsdist: Check both h2o and nghttp2 in the DoH regression tests

22 months agoauth-4.8.2: secpoll&docs 13215/head
Peter van Dijk [Wed, 6 Sep 2023 13:49:26 +0000 (15:49 +0200)] 
auth-4.8.2: secpoll&docs

22 months agodnsdist: Small optimizations for incoming DoH
Remi Gacogne [Thu, 11 May 2023 15:49:39 +0000 (17:49 +0200)] 
dnsdist: Small optimizations for incoming DoH

22 months agodnsdist: Small optimization for nghttp2 headers
Remi Gacogne [Fri, 5 May 2023 15:10:14 +0000 (17:10 +0200)] 
dnsdist: Small optimization for nghttp2 headers

22 months agodnsdist: Log when a TC=1 response is received for a DoH query
Remi Gacogne [Mon, 27 Mar 2023 11:41:36 +0000 (13:41 +0200)] 
dnsdist: Log when a TC=1 response is received for a DoH query

22 months agodnsdist: Implement incoming DoH support via nghttp2
Remi Gacogne [Mon, 31 Jul 2023 15:07:05 +0000 (17:07 +0200)] 
dnsdist: Implement incoming DoH support via nghttp2

22 months agodnsdist: Refactor the DoH code to be able to have two libraries
Remi Gacogne [Mon, 31 Jul 2023 14:18:02 +0000 (16:18 +0200)] 
dnsdist: Refactor the DoH code to be able to have two libraries

22 months agodnsdist: Make TLSFrontend and TCPIOHandler suitable for DoH as well
Remi Gacogne [Mon, 31 Jul 2023 09:56:30 +0000 (11:56 +0200)] 
dnsdist: Make TLSFrontend and TCPIOHandler suitable for DoH as well

22 months agodnsdist: Get rid of the reference counter for DOHUnit
Remi Gacogne [Mon, 31 Jul 2023 09:46:16 +0000 (11:46 +0200)] 
dnsdist: Get rid of the reference counter for DOHUnit

It is no longer needed since we now rely on moving the unique pointer
around.

22 months agodnsdist: Prepare for a second incoming DoH provider
Remi Gacogne [Mon, 31 Jul 2023 09:18:30 +0000 (11:18 +0200)] 
dnsdist: Prepare for a second incoming DoH provider

h2o becomes optional, and is not enabled by default.

22 months agoMerge pull request #13208 from neheb/pai
Remi Gacogne [Thu, 7 Sep 2023 07:15:34 +0000 (09:15 +0200)] 
Merge pull request #13208 from neheb/pai

remove make_tuple and make_pair

22 months agoMerge pull request #13218 from Habbie/docker-compose-space
Peter van Dijk [Wed, 6 Sep 2023 20:07:54 +0000 (22:07 +0200)] 
Merge pull request #13218 from Habbie/docker-compose-space

switch from `docker-compose` to `docker compose` and stop installing docker-compose because that uninstalls runc

22 months agoswitch from `docker-compose` to `sudo docker compose` and 13218/head
Peter van Dijk [Tue, 29 Aug 2023 13:07:19 +0000 (15:07 +0200)] 
switch from `docker-compose` to `sudo docker compose` and
stop installing docker-compose because that uninstalls runc

22 months agoMerge pull request #12086 from zeha/apizonepost
Peter van Dijk [Wed, 6 Sep 2023 10:18:12 +0000 (12:18 +0200)] 
Merge pull request #12086 from zeha/apizonepost

API: Auth: replace zone contents et al

22 months agoAlso remove Wants=nss-lookup.target 13210/head
Otto Moerbeek [Wed, 6 Sep 2023 09:49:23 +0000 (11:49 +0200)] 
Also remove Wants=nss-lookup.target

22 months agorec: remove Before=nss-lookup.target line from unit file
Otto Moerbeek [Wed, 6 Sep 2023 08:24:13 +0000 (10:24 +0200)] 
rec: remove Before=nss-lookup.target line from unit file

Fixes #13115

22 months agoMerge pull request #13086 from jsoref/speed-bumps
Peter van Dijk [Tue, 5 Sep 2023 23:04:01 +0000 (01:04 +0200)] 
Merge pull request #13086 from jsoref/speed-bumps

Add speed bumps to bug filing

22 months agoBetter formatting of the fuzzing README 13145/head
Remi Gacogne [Tue, 5 Sep 2023 16:10:40 +0000 (18:10 +0200)] 
Better formatting of the fuzzing README

22 months agoMerge pull request #13197 from rgacogne/remove-arc4random-warning
Remi Gacogne [Tue, 5 Sep 2023 15:54:30 +0000 (17:54 +0200)] 
Merge pull request #13197 from rgacogne/remove-arc4random-warning

arc4random: Fix 'redundant redeclaration’ warnings

22 months agoUse at(i) instead of [i] 13208/head
Otto Moerbeek [Tue, 5 Sep 2023 10:40:50 +0000 (12:40 +0200)] 
Use at(i) instead of [i]

22 months agowording 13086/head
Peter van Dijk [Tue, 5 Sep 2023 10:47:59 +0000 (12:47 +0200)] 
wording

22 months agoFormatting
Otto Moerbeek [Tue, 5 Sep 2023 08:54:39 +0000 (10:54 +0200)] 
Formatting

22 months agoalso link to Discussions
Peter van Dijk [Tue, 5 Sep 2023 10:23:43 +0000 (12:23 +0200)] 
also link to Discussions

22 months agosimplify text
Peter van Dijk [Tue, 5 Sep 2023 10:22:24 +0000 (12:22 +0200)] 
simplify text

22 months agoMerge pull request #11597 from cmouse/geoipbackend-multi
Peter van Dijk [Tue, 5 Sep 2023 10:15:17 +0000 (12:15 +0200)] 
Merge pull request #11597 from cmouse/geoipbackend-multi

geoipbackend: Support reading zones from directory

22 months agoThe proper "expired" test is ttd <= now
Otto Moerbeek [Tue, 5 Sep 2023 08:40:27 +0000 (10:40 +0200)] 
The proper "expired" test is ttd <= now

22 months agoImplement a way to only dump specific cache(s), undocumented!
Otto Moerbeek [Tue, 5 Sep 2023 08:20:50 +0000 (10:20 +0200)] 
Implement a way to only dump specific cache(s), undocumented!

22 months agorec: implement a more fair way to prune the aggressive cache
Otto Moerbeek [Fri, 1 Sep 2023 13:39:18 +0000 (15:39 +0200)] 
rec: implement a more fair way to prune the aggressive cache

Fixes #13109

22 months agoremove make_tuple and make_pair
Rosen Penev [Fri, 1 Sep 2023 08:41:48 +0000 (08:41 +0000)] 
remove make_tuple and make_pair

Not needed

Signed-off-by: Rosen Penev <rosenp@gmail.com>
22 months agoMerge pull request #13142 from rgacogne/fix-channel-warning
Remi Gacogne [Mon, 4 Sep 2023 12:26:08 +0000 (14:26 +0200)] 
Merge pull request #13142 from rgacogne/fix-channel-warning

channel: Fix redundant redeclaration warning

22 months agoMerge pull request #13196 from rgacogne/ddist-dynblock-tests-waittime
Remi Gacogne [Mon, 4 Sep 2023 12:25:10 +0000 (14:25 +0200)] 
Merge pull request #13196 from rgacogne/ddist-dynblock-tests-waittime

dnsdist: Reduce the UDP wait time for blocked queries in the tests

23 months agoarc4random: Fix 'redundant redeclaration’ warnings 13197/head
Remi Gacogne [Thu, 31 Aug 2023 09:40:46 +0000 (11:40 +0200)] 
arc4random: Fix 'redundant redeclaration’ warnings

If `arc4random.hh` is included before `config.h`, the `HAVE_*` defines
are not yet available and thus we include the definition of the following
functions even though they might be available in the standard headers:
- `arc4random`
- `arc4random_buf`
- `arc4random_uniform`
- `explicit_bzero`

Yielding warnings:
```
In file included from dns_random.hh:27,
                 from tsigutils.cc:25:
../ext/arc4random/arc4random.hh:9:12: warning: redundant redeclaration of ‘uint32_t arc4random()’ in same scope [-Wredundant-decls]
    9 |   uint32_t arc4random(void);
      |            ^~~~~~~~~~
In file included from /usr/include/c++/13.2.1/cstdlib:79,
                 from /usr/include/c++/13.2.1/ext/string_conversions.h:43,
                 from /usr/include/c++/13.2.1/bits/basic_string.h:4097,
                 from /usr/include/c++/13.2.1/string:54,
                 from dnsname.hh:26,
                 from tsigutils.cc:23:
/usr/include/stdlib.h:657:19: note: previous declaration of ‘__uint32_t arc4random()’
  657 | extern __uint32_t arc4random (void)
      |                   ^~~~~~~~~~
../ext/arc4random/arc4random.hh:12:8: warning: redundant redeclaration of ‘void arc4random_buf(void*, size_t)’ in same scope [-Wredundant-decls]
   12 |   void arc4random_buf(void* buf, size_t nbytes);
      |        ^~~~~~~~~~~~~~
/usr/include/stdlib.h:661:13: note: previous declaration of ‘void arc4random_buf(void*, size_t)’
  661 | extern void arc4random_buf (void *__buf, size_t __size)
      |             ^~~~~~~~~~~~~~
../ext/arc4random/arc4random.hh:15:12: warning: redundant redeclaration of ‘uint32_t arc4random_uniform(uint32_t)’ in same scope [-Wredundant-decls]
   15 |   uint32_t arc4random_uniform(uint32_t upper_bound);
      |            ^~~~~~~~~~~~~~~~~~
/usr/include/stdlib.h:666:19: note: previous declaration of ‘__uint32_t arc4random_uniform(__uint32_t)’
  666 | extern __uint32_t arc4random_uniform (__uint32_t __upper_bound)
      |                   ^~~~~~~~~~~~~~~~~~
../ext/arc4random/arc4random.hh:18:8: warning: redundant redeclaration of ‘void explicit_bzero(void*, size_t)’ in same scope [-Wredundant-decls]
   18 |   void explicit_bzero(void*, size_t len);
```

23 months agodnsdist: Reduce the UDP wait time for blocked queries in the tests 13196/head
Remi Gacogne [Wed, 30 Aug 2023 13:55:01 +0000 (15:55 +0200)] 
dnsdist: Reduce the UDP wait time for blocked queries in the tests

We know that we are not going to get a response, and waiting for too
long increases the risk that the dynamic block is no longer present
and/or has expired (validity of 0s) in the subsequent API check.

23 months agoMerge pull request #13190 from omoerbeek/rec-unused-warnings
Otto Moerbeek [Tue, 29 Aug 2023 14:42:31 +0000 (16:42 +0200)] 
Merge pull request #13190 from omoerbeek/rec-unused-warnings

rec: fix a few unused argument warnings (depening on features enabled)

23 months agoMerge pull request #13181 from rgacogne/fix-provenance
Remi Gacogne [Tue, 29 Aug 2023 11:27:37 +0000 (13:27 +0200)] 
Merge pull request #13181 from rgacogne/fix-provenance

Fix provenance generation for our packages

23 months agorec: fix a few unused argument warnings (depening on features enabled) 13190/head
Otto Moerbeek [Tue, 29 Aug 2023 09:28:33 +0000 (11:28 +0200)] 
rec: fix a few unused argument warnings (depening on features enabled)

Additionally, handle a few clang-tidy warnings

23 months agobuilder-dispatch: Remove the newline at the end of the os list 13181/head
Remi Gacogne [Tue, 29 Aug 2023 09:48:57 +0000 (11:48 +0200)] 
builder-dispatch: Remove the newline at the end of the os list

23 months agoMerge pull request #13162 from fredmorcos/auth-print-loaded-modules
Fred Morcos [Tue, 29 Aug 2023 09:09:39 +0000 (11:09 +0200)] 
Merge pull request #13162 from fredmorcos/auth-print-loaded-modules

Auth: Print the list of loaded modules next to the config.h preset

23 months agoMerge pull request #13164 from fredmorcos/bindlexer-use-c++-header
Peter van Dijk [Tue, 29 Aug 2023 08:24:36 +0000 (10:24 +0200)] 
Merge pull request #13164 from fredmorcos/bindlexer-use-c++-header

Bindlexer use C++ bison header

23 months agoUse the C++ header file generated by bison instead of opting for a C header file 13164/head
Fred Morcos [Tue, 22 Aug 2023 14:50:00 +0000 (16:50 +0200)] 
Use the C++ header file generated by bison instead of opting for a C header file

23 months agoMerge pull request #13183 from omoerbeek/rec-pb-test-fix-empty-call
Otto Moerbeek [Mon, 28 Aug 2023 15:11:17 +0000 (17:11 +0200)] 
Merge pull request #13183 from omoerbeek/rec-pb-test-fix-empty-call

rec: fix call of empty() in Protobuf regression test, nice speedup

23 months agorec: fix call of empty() in Protobuf regression test, nice speedup 13183/head
Otto Moerbeek [Mon, 28 Aug 2023 14:19:05 +0000 (16:19 +0200)] 
rec: fix call of empty() in Protobuf regression test, nice speedup

23 months agodnsdist: Also test metrics with recvmmsg support enabled 13182/head
Remi Gacogne [Mon, 28 Aug 2023 14:12:01 +0000 (16:12 +0200)] 
dnsdist: Also test metrics with recvmmsg support enabled

We have seen in https://github.com/PowerDNS/pdns/issues/13148 that
we can easily break frontend metrics when `recvmmsg`/`sendmmsg`
support is enabled via `setUDPMultipleMessagesVectorSize()`, so let's
test the metrics in that case explicitly so we do not break them
again in the future.