/** Binary tree map implementation with <Netmask,T> pair.
*
- * This is an binary tree implementation for storing attributes for IPv4 and IPv6 prefixes.
+ * This is a binary tree implementation for storing attributes for IPv4 and IPv6 prefixes.
* The most simple use case is simple NetmaskTree<bool> used by NetmaskGroup, which only
* wants to know if given IP address is matched in the prefixes stored.
*
# We need to clean in the Rust dir, as in some cases the Serde/CXX derive/generate code does not get
# re-run by cargo after rust/src/lib.rs changed because of a generate.py run. In that case we end up
-# with an rust/src/lib.rs.h that does not contain e.g. field name or field type changes. This
+# with a rust/src/lib.rs.h that does not contain e.g. field name or field type changes. This
# cleanup is now done from generate.py itself.
#
# Use patterns to avoid having two instances of generate run simultaneously, a well-known hack for GNU make
+ a child of a top level domain starting with "rpz-".
*/
else if (!crcTarget.empty() && !crcTarget.isRoot() && crcTarget.getRawLabel(crcTarget.countLabels() - 1).compare(0, rpzPrefix.length(), rpzPrefix) == 0) {
- /* this is very likely an higher format number or a configuration error,
+ /* this is very likely a higher format number or a configuration error,
let's just ignore it. */
log->info(Logr::Info, "Discarding unsupported RPZ entry", "target", Logging::Loggable(crcTarget), "name", Logging::Loggable(dnsRecord.d_name));
return;
}
});
- // Lookup first name. We should see the address of an nameserver in the cache
+ // Lookup first name. We should see the address of a nameserver in the cache
vector<DNSRecord> ret;
int res = sr->beginResolve(target1, QType(QType::A), QClass::IN, ret);
BOOST_CHECK_EQUAL(res, RCode::NoError);
}
});
- // Lookup first name. We should see the address of an nameserver in the cache
+ // Lookup first name. We should see the address of a nameserver in the cache
vector<DNSRecord> ret;
int res = sr->beginResolve(target1, QType(QType::A), QClass::IN, ret);
BOOST_CHECK_EQUAL(res, RCode::NoError);
// Move the time
sr->setNow({sr->getNow().tv_sec + 2, sr->getNow().tv_usec});
- // Lookup second name. We should see the address of an nameserver in the cache *not* being updated
+ // Lookup second name. We should see the address of a nameserver in the cache *not* being updated
ret.clear();
res = sr->beginResolve(target2, QType(QType::A), QClass::IN, ret);
BOOST_CHECK_EQUAL(res, RCode::NoError);
[[nodiscard]] bool inTransaction() const { return m_in_transaction; };
- //! Used to create an backend specific exception message.
+ //! Used to create a backend specific exception message.
SSqlException sPerrorException(const std::string& reason) override;
};
SvcParam::SvcParam(const SvcParamKey &key, const uint16_t value) {
d_key = key;
if (d_key != SvcParamKey::port) {
- throw std::invalid_argument("can not create SvcParam for " + keyToString(key) + " with an port value");
+ throw std::invalid_argument("can not create SvcParam for " + keyToString(key) + " with a port value");
}
d_port = value;
}