]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
change name
authorY7n05h <Y7n05h@protonmail.com>
Thu, 21 Apr 2022 11:18:18 +0000 (19:18 +0800)
committerY7n05h <Y7n05h@protonmail.com>
Fri, 22 Apr 2022 18:32:27 +0000 (02:32 +0800)
Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
Co-authored-by: Remi Gacogne <github@coredump.fr>
pdns/bpf-filter.cc

index 331b56692cbf289eedb8f4266cdf417da92ea3ef..65133b90c0023f850bb564332e37341482d50661 100644 (file)
@@ -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());
   }
 }