From: Otto Moerbeek Date: Tue, 5 Nov 2024 14:02:33 +0000 (+0100) Subject: Better name for FWCatz: FWCatalogZone X-Git-Tag: rec-5.2.0-alpha1~7^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14759%2Fhead;p=thirdparty%2Fpdns.git Better name for FWCatz: FWCatalogZone --- diff --git a/pdns/recursordist/rec-lua-conf.hh b/pdns/recursordist/rec-lua-conf.hh index de794c2f17..762664144d 100644 --- a/pdns/recursordist/rec-lua-conf.hh +++ b/pdns/recursordist/rec-lua-conf.hh @@ -108,7 +108,7 @@ public: SortList sortlist; DNSFilterEngine dfe; vector rpzs; - vector catalogzones; + vector catalogzones; TrustAnchorFileInfo trustAnchorFileInfo; // Used to update the Trust Anchors from file periodically map dsAnchors; map negAnchors; diff --git a/pdns/recursordist/rec-xfr.cc b/pdns/recursordist/rec-xfr.cc index c43b09d7fc..097a1930af 100644 --- a/pdns/recursordist/rec-xfr.cc +++ b/pdns/recursordist/rec-xfr.cc @@ -73,7 +73,7 @@ void CatalogZone::remove(const DNSRecord& record, Logr::log_t logger) d_records.erase(std::make_pair(key, record.d_type)); } -void CatalogZone::registerForwarders(const FWCatz& params, Logr::log_t logger) const +void CatalogZone::registerForwarders(const FWCatalogZone& params, Logr::log_t logger) const { const string zonesFile = ::arg()["api-config-dir"] + "/catzone." + d_name.toString(); ::rust::Vec<::pdns::rust::settings::rec::ForwardZone> forwards; diff --git a/pdns/recursordist/rec-xfr.hh b/pdns/recursordist/rec-xfr.hh index 96ce86d3ac..5adc78bfc7 100644 --- a/pdns/recursordist/rec-xfr.hh +++ b/pdns/recursordist/rec-xfr.hh @@ -36,7 +36,7 @@ class DNSName; class SOARecordContent; -struct FWCatz; +struct FWCatalogZone; // All members of this struct must be copyable, as they are used as parameters in a thread constructor struct ZoneXFRParams @@ -82,7 +82,7 @@ public: } void add(const DNSRecord& record, Logr::log_t logger); void remove(const DNSRecord& record, Logr::log_t logger); - void registerForwarders(const FWCatz& params, Logr::log_t logger) const; + void registerForwarders(const FWCatalogZone& params, Logr::log_t logger) const; [[nodiscard]] bool versionCheck() const; [[nodiscard]] bool dupsCheck() const; @@ -93,7 +93,7 @@ private: uint32_t d_serial{0}; }; -struct FWCatz +struct FWCatalogZone { ZoneXFRParams d_params; std::map d_defaults; diff --git a/pdns/recursordist/settings/cxxsupport.cc b/pdns/recursordist/settings/cxxsupport.cc index b7183e2ef0..f27b3e9f0b 100644 --- a/pdns/recursordist/settings/cxxsupport.cc +++ b/pdns/recursordist/settings/cxxsupport.cc @@ -1306,10 +1306,10 @@ void fromRustToLuaConfig(const rust::Vec& catzones, std::vector& lua) +void fromRustToLuaConfig(const rust::Vec& catzones, std::vector& lua) { for (const auto& catz : catzones) { - FWCatz fwcatz; + FWCatalogZone fwcatz; for (const auto& def : catz.groups) { fwcatz.d_defaults.emplace(def.name, def); }