From b94a83e05fe09411c6110a3cceda689daeb18454 Mon Sep 17 00:00:00 2001 From: Y7n05h Date: Thu, 21 Apr 2022 19:18:18 +0800 Subject: [PATCH] change name Signed-off-by: Y7n05h Co-authored-by: Remi Gacogne --- pdns/bpf-filter.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()); } } -- 2.47.3