From 5773ec3f5e64be1eb66a1e58a391cec56e3b6868 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Mon, 16 Jun 2025 12:58:58 +0200 Subject: [PATCH] Provide an IP_OFFMASK value for systems lacking it. Fixes: #8060 Signed-off-by: Miod Vallat --- pdns/dnsscope.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pdns/dnsscope.cc b/pdns/dnsscope.cc index 86677b2d2a..3884f81ad0 100644 --- a/pdns/dnsscope.cc +++ b/pdns/dnsscope.cc @@ -43,6 +43,12 @@ #include "dnsrecords.hh" #include "statnode.hh" +#if !defined(IP_OFFMASK) +// Solaris and derivatives do not define IP_OFFMASK in . +// We can't even use ~(IP_RF | IP_DF | IP_MF) as it doesn't define IP_RF either. +#define IP_OFFMASK 0x1fff /* mask for fragmenting bits */ +#endif + namespace po = boost::program_options; po::variables_map g_vm; -- 2.47.2