res = bpf_lookup_elem(map.d_fd.getHandle(), &key, &value);
if (res != -1 && value.action == action) {
- throw std::runtime_error("Trying to block an already blocked address: " + addr.toString());
+ throw std::runtime_error("Trying to block an already blocked netmask: " + addr.toString());
}
value.counter = 0;
res = bpf_lookup_elem(map.d_fd.getHandle(), &key, &value);
if (res != -1 && value.action == action) {
- throw std::runtime_error("Trying to block an already blocked address: " + addr.toString());
+ throw std::runtime_error("Trying to block an already blocked netmask: " + addr.toString());
}
value.counter = 0;
}
if (res != 0) {
- throw std::runtime_error("Error removing blocked address " + addr.toString() + ": " + stringerror());
+ throw std::runtime_error("Error removing blocked netmask" + addr.toString() + ": " + stringerror());
}
}