From e1f6c2bdf56d9d9232e404c635e9f1655bbf6c77 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 15 Nov 2021 18:16:35 +0100 Subject: [PATCH] dnsdist: Switch to a uint8_t for the XDP match action type --- contrib/xdp-filter.ebpf.src | 2 +- pdns/bpf-filter.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2