From: Miod Vallat Date: Mon, 16 Jun 2025 10:58:58 +0000 (+0200) Subject: Provide an IP_OFFMASK value for systems lacking it. X-Git-Tag: dnsdist-2.0.0-beta1~15^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5773ec3f5e64be1eb66a1e58a391cec56e3b6868;p=thirdparty%2Fpdns.git Provide an IP_OFFMASK value for systems lacking it. Fixes: #8060 Signed-off-by: Miod Vallat --- 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;