]> granicus.if.org Git - pdns/commitdiff
Fix includes
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 16 Jul 2019 11:27:47 +0000 (13:27 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 16 Jul 2019 13:14:00 +0000 (15:14 +0200)
pdns/bpf-filter.cc
pdns/capabilities.cc

index 62a8b95c12b524b515c566f7ca8be113102b7609..56418c281362daa2308e86d01be8dfb8a28fcee9 100644 (file)
@@ -28,6 +28,8 @@
 
 #include "ext/libbpf/libbpf.h"
 
+#include "misc.hh"
+
 static __u64 ptr_to_u64(void *ptr)
 {
   return (__u64) (unsigned long) ptr;
@@ -188,7 +190,7 @@ BPFFilter::BPFFilter(uint32_t maxV4Addresses, uint32_t maxV6Addresses, uint32_t
   uint32_t key = 0;
   int res = bpf_update_elem(d_filtermap.fd, &key, &d_qnamefilter.fd, BPF_ANY);
   if (res != 0) {
-    throw std::runtime_error("Error updating BPF filters map: " + stringrerror());
+    throw std::runtime_error("Error updating BPF filters map: " + stringerror());
   }
 }
 
@@ -321,7 +323,7 @@ void BPFFilter::block(const DNSName& qname, uint16_t qtype)
     }
 
     if (res != 0) {
-      throw std::runtime_error("Error adding blocked qname " + qname.toLogString() + ": " + stringerror()));
+      throw std::runtime_error("Error adding blocked qname " + qname.toLogString() + ": " + stringerror());
     }
   }
 }
@@ -345,7 +347,7 @@ void BPFFilter::unblock(const DNSName& qname, uint16_t qtype)
       d_qNamesCount--;
     }
     else {
-      throw std::runtime_error("Error removing qname address " + qname.toLogString() + ": " + stringerror()));
+      throw std::runtime_error("Error removing qname address " + qname.toLogString() + ": " + stringerror());
     }
   }
 }
index 0abb742a3c38b5f34ff75a7583cc8bc85505c6fe..74a20fa8949dbb833471a30bd5446196fc3be84e 100644 (file)
@@ -30,6 +30,7 @@
 #endif
 
 #include "capabilities.hh"
+#include "misc.hh"
 
 void dropCapabilities()
 {