struct UnsignedIntegerConfigurationItems
{
const std::function<void(dnsdist::configuration::RuntimeConfiguration& config, uint64_t value)> mutator;
- const size_t maximumValue{std::numeric_limits<uint64_t>::max()};
+ const uint64_t maximumValue{std::numeric_limits<uint64_t>::max()};
};
struct StringConfigurationItems
struct UnsignedIntegerImmutableConfigurationItems
{
const std::function<void(dnsdist::configuration::ImmutableConfiguration& config, uint64_t value)> mutator;
- const size_t maximumValue{std::numeric_limits<uint64_t>::max()};
+ const uint64_t maximumValue{std::numeric_limits<uint64_t>::max()};
};
struct DoubleImmutableConfigurationItems
#endif // defined(HAVE_DNS_OVER_TLS) || defined(HAVE_DNS_OVER_HTTPS)
-void checkParameterBound(const std::string& parameter, uint64_t value, size_t max)
+void checkParameterBound(const std::string& parameter, uint64_t value, uint64_t max)
{
if (value > max) {
throw std::runtime_error("The value (" + std::to_string(value) + ") passed to " + parameter + " is too large, the maximum is " + std::to_string(max));
std::shared_ptr<DNSRule> makeRule(const luadnsrule_t& var, const std::string& calledFrom);
void parseRuleParams(boost::optional<luaruleparams_t>& params, boost::uuids::uuid& uuid, std::string& name, uint64_t& creationOrder);
-void checkParameterBound(const std::string& parameter, uint64_t value, size_t max = std::numeric_limits<uint16_t>::max());
+void checkParameterBound(const std::string& parameter, uint64_t value, uint64_t max = std::numeric_limits<uint16_t>::max());
void setupLua(LuaContext& luaCtx, bool client, bool configCheck, const std::string& config);
void setupLuaActions(LuaContext& luaCtx);
#include "dnsdist-rules.hh"
#include "dnsdist-rules-factory.hh"
-void checkParameterBound(const std::string& parameter, uint64_t value, size_t max)
+void checkParameterBound(const std::string& parameter, uint64_t value, uint64_t max)
{
if (value > max) {
throw std::runtime_error("The value passed to " + parameter + " is too large, the maximum is " + std::to_string(max));