]>
git.ipfire.org Git - thirdparty/pdns.git/log
Remi Gacogne [Tue, 30 Jan 2024 09:58:21 +0000 (10:58 +0100)]
dnsdist: Apply Charles-Henri's suggestions (thanks!)
Remi Gacogne [Mon, 29 Jan 2024 10:15:16 +0000 (11:15 +0100)]
dnsdist: Fix formatting of fuzz_xsk.cc
Remi Gacogne [Mon, 29 Jan 2024 10:12:27 +0000 (11:12 +0100)]
dnsdist: Add a fuzzing target for the XSK code
Remi Gacogne [Thu, 25 Jan 2024 11:32:09 +0000 (12:32 +0100)]
dnsdist: Properly detect whether `bpf_xdp_query` is available
It was added in libbpf 0.7 and EL8 only has 0.5, sadly.
Remi Gacogne [Tue, 23 Jan 2024 13:57:55 +0000 (14:57 +0100)]
spell-check: Allow libxdp
Remi Gacogne [Tue, 23 Jan 2024 13:54:29 +0000 (14:54 +0100)]
dnsdist: Update the XSK documentation for recent changes
Remi Gacogne [Tue, 23 Jan 2024 12:03:35 +0000 (13:03 +0100)]
dnsdist: Fix more clang-tidy warnings
Remi Gacogne [Tue, 23 Jan 2024 11:53:36 +0000 (12:53 +0100)]
dnsdist: Implement proper parameters handling in the XDP helper
Remi Gacogne [Tue, 23 Jan 2024 11:01:02 +0000 (12:01 +0100)]
dnsdist: Fix warnings from clang-tidy
Remi Gacogne [Tue, 23 Jan 2024 10:03:50 +0000 (11:03 +0100)]
dnsdist: Relax file descriptor check for XSK-enabled backends
We cannot guarantee that the response will be coming via XSK, so
we need to accept that a response that does not come from the
expected socket descriptor.
Remi Gacogne [Tue, 23 Jan 2024 09:09:30 +0000 (10:09 +0100)]
dnsdist: Switch to Debian 12 for our Docker image, enable XSK
Remi Gacogne [Mon, 22 Jan 2024 16:04:44 +0000 (17:04 +0100)]
dnsdist: Hopefully fix building with/without XDP in CI
Remi Gacogne [Mon, 22 Jan 2024 15:49:53 +0000 (16:49 +0100)]
dnsdist: Enable XSK (AF_XDP) on supported OSes
Remi Gacogne [Mon, 22 Jan 2024 11:28:25 +0000 (12:28 +0100)]
dnsdist: Clear the XSK responder notification queue right away
Otherwise we might discard a valid notification between our last
look at the queue and the clearing.
Remi Gacogne [Mon, 22 Jan 2024 11:28:09 +0000 (12:28 +0100)]
dnsdist: Properly delay response packets in incoming-only XSK mode
Remi Gacogne [Fri, 19 Jan 2024 16:22:57 +0000 (17:22 +0100)]
dnsdist: Refactor XSK support between dnsdist and the backends
Remi Gacogne [Fri, 19 Jan 2024 14:40:28 +0000 (15:40 +0100)]
dnsdist: Cosmetic fixes for XSK
Remi Gacogne [Fri, 19 Jan 2024 08:53:48 +0000 (09:53 +0100)]
dnsdist: Log whether we are using XSK, and which mode (native or emulated)
Remi Gacogne [Fri, 19 Jan 2024 08:14:38 +0000 (09:14 +0100)]
dnsdist: Fix XSK over IPv6
Remi Gacogne [Fri, 19 Jan 2024 08:10:44 +0000 (09:10 +0100)]
dnsdist: Log whether UDP queries are forwarded via XSK
Remi Gacogne [Tue, 16 Jan 2024 10:42:45 +0000 (11:42 +0100)]
dnsdist: Install libbpf and libxdp in our CI image
Remi Gacogne [Tue, 16 Jan 2024 10:34:21 +0000 (11:34 +0100)]
dnsdist: Add default values for the map and number of frames in `newXsk`
Remi Gacogne [Mon, 15 Jan 2024 16:02:38 +0000 (17:02 +0100)]
dnsdist: Fix a clang-tidy warning
Remi Gacogne [Mon, 15 Jan 2024 16:01:59 +0000 (17:01 +0100)]
dnsdist: We need the regular, non-XSK threads as well!
Remi Gacogne [Mon, 15 Jan 2024 16:01:26 +0000 (17:01 +0100)]
dnsdist: Fix XSK/AF_XDP detection
Remi Gacogne [Mon, 15 Jan 2024 16:07:45 +0000 (17:07 +0100)]
dnsdist: Add xsk, xskmap and umem to the spellchecker allow-list
Remi Gacogne [Mon, 15 Jan 2024 15:50:45 +0000 (16:50 +0100)]
dnsdist: Document the XSK feature
Remi Gacogne [Mon, 15 Jan 2024 15:09:52 +0000 (16:09 +0100)]
dnsdist: Report the `AF_XDP` feature
Remi Gacogne [Mon, 15 Jan 2024 15:09:22 +0000 (16:09 +0100)]
xdp.py: The ports set is now unused in XSK mode
Remi Gacogne [Mon, 15 Jan 2024 15:08:51 +0000 (16:08 +0100)]
dnsdist: Revert the now unneeded changes made to dnsdist-healthchecks
Remi Gacogne [Mon, 15 Jan 2024 14:44:31 +0000 (15:44 +0100)]
dnsdist: Format and delint the XSK code
Remi Gacogne [Mon, 15 Jan 2024 14:14:29 +0000 (15:14 +0100)]
dnsdist: Clean up and reorganize XSK code
Remi Gacogne [Thu, 11 Jan 2024 15:24:38 +0000 (16:24 +0100)]
dnsdist: Fix XSK between dnsdist and its backends
Remi Gacogne [Thu, 28 Dec 2023 15:20:40 +0000 (16:20 +0100)]
dnsdist: Get rid of memory allocations in the XSK hot path
Remi Gacogne [Thu, 28 Dec 2023 14:18:44 +0000 (15:18 +0100)]
dnsdist: Refactor the XSK code into a proper namespace
Remi Gacogne [Thu, 28 Dec 2023 10:53:49 +0000 (11:53 +0100)]
dnsdist: Cleanup of the XSK code, fixing alignment issues
Also add UMEM checks for debugging.
Remi Gacogne [Thu, 28 Dec 2023 10:51:04 +0000 (11:51 +0100)]
dnsdist: Fix a UMEM corruption in XSK
The second parameter to `xsk_ring_prod__submit` is the number of
processed items, not the final index.
Remi Gacogne [Tue, 26 Sep 2023 10:35:50 +0000 (12:35 +0200)]
dnsdist: Minor clean ups in the XSK code
Remi Gacogne [Tue, 26 Sep 2023 10:35:09 +0000 (12:35 +0200)]
dnsdist: Fix AF_XDP (XSK) detection
Remi Gacogne [Tue, 19 Sep 2023 14:45:46 +0000 (16:45 +0200)]
dnsdist: Better detection of libbpf and libxdp
Remi Gacogne [Mon, 18 Sep 2023 12:22:07 +0000 (14:22 +0200)]
dnsdist: Small cleanup of the XSK code
Remi Gacogne [Fri, 3 Mar 2023 13:04:16 +0000 (14:04 +0100)]
dnsdist: Fall-back to non-XSK for too large responses
Remi Gacogne [Fri, 3 Mar 2023 13:01:43 +0000 (14:01 +0100)]
dnsdist: Add a `XskSocket::getMetrics()` binding
Remi Gacogne [Thu, 2 Mar 2023 14:06:59 +0000 (15:06 +0100)]
dnsdist: Add comments to the XSK code
Remi Gacogne [Thu, 2 Mar 2023 14:04:57 +0000 (15:04 +0100)]
dnsdist: Fix parameter validation with XSK
Remi Gacogne [Thu, 2 Mar 2023 14:04:33 +0000 (15:04 +0100)]
dnsdist: Punt fragmented UDP dgrams to the kernel in xdp-filter
Remi Gacogne [Wed, 1 Mar 2023 13:04:08 +0000 (14:04 +0100)]
dnsdist: Pass-through TCP packets from XDP
Remi Gacogne [Wed, 1 Mar 2023 13:03:22 +0000 (14:03 +0100)]
dnsdist: Add an option to easily disable XDP logging (default)
Remi Gacogne [Wed, 1 Mar 2023 10:34:02 +0000 (11:34 +0100)]
dnsdist: Prevent a false-positive warning from the compiler
```
In file included from xsk.hh:50,
from xsk.cc:23:
In function ‘xdp_desc* xsk_ring_prod__tx_desc(xsk_ring_prod*, __u32)’,
inlined from ‘void XskSocket::send(std::vector<std::unique_ptr<XskPacket>, std::allocator<std::unique_ptr<XskPacket> > >&)’ at xsk.cc:176:28:
/usr/include/xdp/xsk.h:76:27: warning: ‘idx’ may be used uninitialized [-Wmaybe-uninitialized]
76 | return &descs[idx & tx->mask];
| ~~~~^~~~~~~~~~
```
Remi Gacogne [Wed, 1 Mar 2023 10:33:41 +0000 (11:33 +0100)]
dnsdist: Better error messages when failing to load the XDP map
Y7n05h [Wed, 17 Aug 2022 14:18:11 +0000 (22:18 +0800)]
dnsdist: add AF_XDP support for udp
Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
Remi Gacogne [Tue, 23 Jan 2024 11:02:18 +0000 (12:02 +0100)]
Merge pull request #13723 from chbruyand/dnsname-position-types
DNSName: correct len and offset types
Otto Moerbeek [Tue, 23 Jan 2024 10:17:50 +0000 (11:17 +0100)]
Merge pull request #13701 from omoerbeek/rec-rpz-refactor
rec: RPZ from primary refactor and allow notifies for RPZs
Otto Moerbeek [Tue, 23 Jan 2024 09:22:11 +0000 (10:22 +0100)]
Make the refresh 1 again, to work around the new rate limiting
Remi Gacogne [Tue, 23 Jan 2024 09:08:59 +0000 (10:08 +0100)]
Merge pull request #13735 from rgacogne/ddist-coverity-
20240123
dnsdist: Move the console socket instead of copying it
Charles-Henri Bruyand [Tue, 23 Jan 2024 08:42:01 +0000 (09:42 +0100)]
dnsname: remove unnecessary cast as suggested by Otto
Remi Gacogne [Tue, 23 Jan 2024 07:51:45 +0000 (08:51 +0100)]
dnsdist: Move the console socket instead of copying it
Reported by Coverity as CID 414105. We don't really care about the
performance impact but other tools are "helpfully" reporting this
kind of missed optimizations, so let's not waste our time.
Remi Gacogne [Tue, 23 Jan 2024 07:27:37 +0000 (08:27 +0100)]
Merge pull request #13731 from fredmorcos/dnsbackend-cleanup
Cleanup & format `dnsbackend.cc/.hh`
Remi Gacogne [Tue, 23 Jan 2024 07:21:50 +0000 (08:21 +0100)]
Merge pull request #13734 from fredmorcos/fix-dnsproxy
Fix compilation errors in `dnsproxy.cc` due to unused macro
Remi Gacogne [Tue, 23 Jan 2024 07:21:18 +0000 (08:21 +0100)]
Merge pull request #13732 from fredmorcos/cleanup-sha-digests
Cleanup `sha.hh` and `digests.hh`
Fred Morcos [Mon, 22 Jan 2024 23:29:09 +0000 (00:29 +0100)]
Fix compilation of dnsproxy.cc due to unused macro
Fred Morcos [Mon, 22 Jan 2024 14:19:13 +0000 (15:19 +0100)]
Cleanup pdns/digests.hh
Fred Morcos [Mon, 22 Jan 2024 14:18:34 +0000 (15:18 +0100)]
Format test-digests_hh.cc
Fred Morcos [Mon, 22 Jan 2024 14:11:47 +0000 (15:11 +0100)]
Clean up pdns/sha.hh
Fred Morcos [Mon, 22 Jan 2024 14:10:50 +0000 (15:10 +0100)]
Format test-sha_hh.cc
Fred Morcos [Mon, 15 Jan 2024 15:19:48 +0000 (16:19 +0100)]
Fixup dnsbackend.cc and dnsbackend.hh
Fred Morcos [Mon, 15 Jan 2024 15:00:54 +0000 (16:00 +0100)]
Format dnsbackend.hh and dnsbackend.cc
Otto Moerbeek [Mon, 22 Jan 2024 14:13:35 +0000 (15:13 +0100)]
Rate limit the notifies per zone to max 1 per 5 sec (less if refresh is lower)
Otto Moerbeek [Mon, 22 Jan 2024 12:33:32 +0000 (13:33 +0100)]
Process comments from review by @rgacogne, thanks!
Otto Moerbeek [Mon, 22 Jan 2024 12:20:03 +0000 (13:20 +0100)]
Merge pull request #13702 from omoerbeek/rec-log-ref-wrapper
rec: use ref wrapper instead of raw pointer in variant
Otto Moerbeek [Mon, 22 Jan 2024 12:13:14 +0000 (13:13 +0100)]
Merge pull request #13728 from paddg/patch-1
STDOUT instead of STDERR. Probably a typo.
Peter van Dijk [Mon, 22 Jan 2024 10:58:48 +0000 (11:58 +0100)]
Merge pull request #13725 from chbruyand/auth-tinydnsbackend-build
auth: fix tinydnsbackend compilation issue
Peter van Dijk [Mon, 22 Jan 2024 09:11:41 +0000 (10:11 +0100)]
Merge pull request #13729 from Habbie/13633-avoid-copy
getAllDomains catalog: avoid useless copy
Remi Gacogne [Mon, 22 Jan 2024 08:23:52 +0000 (09:23 +0100)]
Merge pull request #13650 from rgacogne/ddist-sym-libcrypto
dnsdist: Fall back to libcrypto for authenticated encryption
Winfried Angele [Mon, 22 Jan 2024 07:41:29 +0000 (08:41 +0100)]
Fix test by updating expected_result
Otto Moerbeek [Mon, 22 Jan 2024 07:26:25 +0000 (08:26 +0100)]
Merge pull request #13727 from rgacogne/coverity-
20240119
dnsdist, rec: Fix missed optimizations reported by Coverity
Peter van Dijk [Fri, 19 Jan 2024 15:44:27 +0000 (16:44 +0100)]
Merge pull request #13722 from Habbie/createforward-word-prefix
auth LUA createForward: allow non-hex word prefix
Peter van Dijk [Fri, 19 Jan 2024 14:26:21 +0000 (15:26 +0100)]
getAllDomains catalog: avoid useless copy
Peter van Dijk [Fri, 19 Jan 2024 13:44:35 +0000 (14:44 +0100)]
bit of formatting
Peter van Dijk [Fri, 19 Jan 2024 13:41:18 +0000 (14:41 +0100)]
reference instead of copy, and move some code for clarity
Peter van Dijk [Fri, 19 Jan 2024 12:38:26 +0000 (13:38 +0100)]
Merge pull request #12891 from Habbie/upgrading-el9-sha1
auth docs: add note about EL9 and SHA1
Peter van Dijk [Fri, 19 Jan 2024 12:35:15 +0000 (13:35 +0100)]
Merge pull request #13633 from Habbie/gsql-alldomains-catalog
auth: set catalog in gsql getAllDomains
Winfried Angele [Fri, 19 Jan 2024 12:07:53 +0000 (13:07 +0100)]
STDOUT instead of STDERR. Probably a typo.
It's not an error message.
Peter van Dijk [Fri, 19 Jan 2024 12:01:36 +0000 (13:01 +0100)]
note changed query in updating.rst
Charles-Henri Bruyand [Fri, 19 Jan 2024 10:47:16 +0000 (11:47 +0100)]
dnsname: tidy some implicit conversion
Charles-Henri Bruyand [Fri, 19 Jan 2024 09:24:01 +0000 (10:24 +0100)]
dnsname: clang-tidy fix a few missing braces
Charles-Henri Bruyand [Thu, 18 Jan 2024 12:50:44 +0000 (13:50 +0100)]
dnsname: move len and offset from int to size_t
Remi Gacogne [Fri, 19 Jan 2024 07:55:04 +0000 (08:55 +0100)]
dnsdist: Fix a missed optimization reported by Coverity
Remi Gacogne [Fri, 19 Jan 2024 07:54:37 +0000 (08:54 +0100)]
dnstap: Fix a missed optimization reported by Coverity
Remi Gacogne [Fri, 19 Jan 2024 07:52:32 +0000 (08:52 +0100)]
Merge pull request #13726 from PowerDNS/dependabot/github_actions/actions/cache-4
build(deps): bump actions/cache from 3 to 4
Charles-Henri Bruyand [Thu, 18 Jan 2024 18:46:39 +0000 (19:46 +0100)]
Merge pull request #13649 from chbruyand/auth-delay-notifications
auth: add a configurable delay for notifications
Charles-Henri Bruyand [Thu, 18 Jan 2024 15:29:41 +0000 (16:29 +0100)]
auth: document new delay-notifications setting
Charles-Henri Bruyand [Mon, 18 Dec 2023 13:53:04 +0000 (14:53 +0100)]
auth: a bit of tidy
Charles-Henri Bruyand [Mon, 18 Dec 2023 13:43:22 +0000 (14:43 +0100)]
auth: reformat communicator.hh and communicator.cc
dependabot[bot] [Thu, 18 Jan 2024 15:21:24 +0000 (15:21 +0000)]
build(deps): bump actions/cache from 3 to 4
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Charles-Henri Bruyand [Thu, 18 Jan 2024 15:13:49 +0000 (16:13 +0100)]
auth: fix tinydnsbackend compilation issue
Remi Gacogne [Thu, 18 Jan 2024 13:59:55 +0000 (14:59 +0100)]
Merge pull request #13716 from chbruyand/dnsdist-protocol-logging
dnsdist: properly set protocol when logging
Peter van Dijk [Thu, 18 Jan 2024 11:43:33 +0000 (12:43 +0100)]
Merge pull request #13481 from berthubert/lua-localwho
Add and document a `localwho()` function for LUA records
Charles-Henri Bruyand [Thu, 18 Jan 2024 10:44:36 +0000 (11:44 +0100)]
dnsdist: revert some clang-tidy related changes
Remi Gacogne [Thu, 18 Jan 2024 09:30:05 +0000 (10:30 +0100)]
Merge pull request #13719 from omoerbeek/rec-coverity-
20240116
rec: coverity
20240116