From: Remi Gacogne Date: Mon, 15 Nov 2021 17:16:35 +0000 (+0100) Subject: dnsdist: Switch to a uint8_t for the XDP match action type X-Git-Tag: dnsdist-1.7.0-beta1^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10883%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Switch to a uint8_t for the XDP match action type --- diff --git a/contrib/xdp-filter.ebpf.src b/contrib/xdp-filter.ebpf.src index 46e3123c11..5ae8a84020 100644 --- a/contrib/xdp-filter.ebpf.src +++ b/contrib/xdp-filter.ebpf.src @@ -88,7 +88,7 @@ struct dns_qname * DROP: XDP_DROP * TC: set TC bit and XDP_TX */ -enum dns_action : uint32_t { +enum dns_action : uint8_t { PASS = 0, DROP = 1, TC = 2 diff --git a/pdns/bpf-filter.hh b/pdns/bpf-filter.hh index b56bd45266..a8e2f5c834 100644 --- a/pdns/bpf-filter.hh +++ b/pdns/bpf-filter.hh @@ -40,7 +40,7 @@ public: WithActions = 1 }; - enum class MatchAction : uint32_t { + enum class MatchAction : uint8_t { Pass = 0, Drop = 1, Truncate = 2