#include "ext/libbpf/libbpf.h"
+#include "misc.hh"
+
static __u64 ptr_to_u64(void *ptr)
{
return (__u64) (unsigned long) ptr;
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());
}
}
}
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());
}
}
}
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());
}
}
}