]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Properly use eBPF when the DynBlock is not set 11550/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 15 Apr 2022 10:19:46 +0000 (12:19 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 15 Apr 2022 14:23:56 +0000 (16:23 +0200)
commitdcddd2fe46270ee50157e3d6bbcba52d65dd1f6a
tree180f54b07445cf33ccf91376c12f8bde5b0b1961
parent214175a08b36cea63d43c5546c9a7bc02c789f89
dnsdist: Properly use eBPF when the DynBlock is not set

When the DynBlock rule does not set a specific action we use the
default one, set with `setDynBlocksAction()`, so we should follow
the same logic when determining whether to insert an eBPF block.

(cherry picked from commit 8742251acdcce8cd27d859595e5e30cecfa4e4ab)
pdns/dnsdist.cc
pdns/dnsdistdist/dnsdist-dynblocks.cc
pdns/dnsdistdist/test-dnsdistdynblocks_hh.cc