From: Y7n05h Date: Thu, 21 Apr 2022 11:18:18 +0000 (+0800) Subject: change name X-Git-Tag: auth-4.8.0-alpha0~66^2~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b94a83e05fe09411c6110a3cceda689daeb18454;p=thirdparty%2Fpdns.git change name Signed-off-by: Y7n05h Co-authored-by: Remi Gacogne --- diff --git a/pdns/bpf-filter.cc b/pdns/bpf-filter.cc index 331b56692c..65133b90c0 100644 --- a/pdns/bpf-filter.cc +++ b/pdns/bpf-filter.cc @@ -526,7 +526,7 @@ void BPFFilter::block(const Netmask& addr, BPFFilter::MatchAction action) 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; @@ -548,7 +548,7 @@ void BPFFilter::block(const Netmask& addr, BPFFilter::MatchAction action) 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; @@ -602,7 +602,7 @@ void BPFFilter::unblock(const Netmask& addr) } 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()); } }