]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Provide an IP_OFFMASK value for systems lacking it. 15679/head
authorMiod Vallat <miod.vallat@powerdns.com>
Mon, 16 Jun 2025 10:58:58 +0000 (12:58 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Mon, 16 Jun 2025 10:58:58 +0000 (12:58 +0200)
Fixes: #8060
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
pdns/dnsscope.cc

index 86677b2d2aa031f7b132ceadb4d71ea5f560bddd..3884f81ad02baca44661a06283fb50543f5075b2 100644 (file)
 #include "dnsrecords.hh"
 #include "statnode.hh"
 
+#if !defined(IP_OFFMASK)
+// Solaris and derivatives do not define IP_OFFMASK in <netinet/ip.h>.
+// 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;