]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Properly use eBPF when the DynBlock is not set 11544/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 10:19:46 +0000 (12:19 +0200)
commit8742251acdcce8cd27d859595e5e30cecfa4e4ab
treeeb34eedb344655d25fe563bfdcd6f4506bdd7a5d
parent4565c442fc60134d5608c141d6a23cf750b80f2f
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.
pdns/dnsdist.cc
pdns/dnsdistdist/dnsdist-dynblocks.cc
pdns/dnsdistdist/test-dnsdistdynblocks_hh.cc