From: Remi Gacogne Date: Mon, 17 Mar 2025 11:44:57 +0000 (+0100) Subject: dnsdist: Fix XSK mode detection when built with `meson` X-Git-Tag: dnsdist-2.0.0-alpha1~3^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F15315%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Fix XSK mode detection when built with `meson` The detection of whether `bpf_xdp_query` is available was not done. --- diff --git a/pdns/dnsdistdist/meson/xsk/meson.build b/pdns/dnsdistdist/meson/xsk/meson.build index fa1af334ce..65f477096f 100644 --- a/pdns/dnsdistdist/meson/xsk/meson.build +++ b/pdns/dnsdistdist/meson/xsk/meson.build @@ -3,6 +3,11 @@ if opt_xsk.allowed() dep_libbpf = dependency('libbpf', required: opt_xsk.enabled()) dep_libxdp = dependency('libxdp', required: opt_xsk.enabled()) + if dep_libbpf.found() and dep_libxdp.found() + has = cxx.has_function('bpf_xdp_query', dependencies: dep_libbpf) + conf.set('HAVE_BPF_XDP_QUERY', has, description: 'Have BPF bpf_xdp_query') + endif + conf.set('HAVE_BPF', dep_libbpf.found(), description: 'BPF library') conf.set('HAVE_XDP', dep_libxdp.found(), description: 'XDP library') conf.set('HAVE_XSK', dep_libbpf.found() and dep_libxdp.found(), description: 'AF_XDP (XSK) support enabled')