// !! This file has been generated by dnsdist-rules-generator.py, do not edit by hand!! std::shared_ptr getAllSelector() { return std::make_shared(); } std::shared_ptr getDNSSECSelector() { return std::make_shared(); } std::shared_ptr getDSTPortSelector(uint16_t port) { return std::make_shared(port); } std::shared_ptr getEDNSOptionSelector(uint16_t option_code) { return std::make_shared(option_code); } std::shared_ptr getEDNSVersionSelector(uint8_t version) { return std::make_shared(version); } std::shared_ptr getERCodeSelector(uint8_t rcode) { return std::make_shared(rcode); } std::shared_ptr getHTTPHeaderSelector(const std::string& header, const std::string& expression) { return std::make_shared(header, expression); } std::shared_ptr getHTTPPathSelector(const std::string& path) { return std::make_shared(path); } std::shared_ptr getHTTPPathRegexSelector(const std::string& expression) { return std::make_shared(expression); } std::shared_ptr getIncomingProtocolSelector(const std::string& protocol) { return std::make_shared(protocol); } std::shared_ptr getLuaFFIPerThreadSelector(const std::string& code) { return std::make_shared(code); } std::shared_ptr getMaxQPSSelector(uint32_t qps, std::optional burst) { return std::make_shared(qps, burst ? *burst : 0); } std::shared_ptr getMaxQPSIPSelector(uint32_t qps, std::optional ipv4_mask, std::optional ipv6_mask, std::optional burst, std::optional expiration, std::optional cleanup_delay, std::optional scan_fraction, std::optional shards) { return std::make_shared(qps, ipv4_mask ? *ipv4_mask : 32, ipv6_mask ? *ipv6_mask : 64, burst ? *burst : 0, expiration ? *expiration : 300, cleanup_delay ? *cleanup_delay : 60, scan_fraction ? *scan_fraction : 10, shards ? *shards : 10); } std::shared_ptr getOpcodeSelector(uint8_t code) { return std::make_shared(code); } std::shared_ptr getPayloadSizeSelector(const std::string& comparison, uint16_t size) { return std::make_shared(comparison, size); } std::shared_ptr getPoolAvailableSelector(const std::string& pool) { return std::make_shared(pool); } std::shared_ptr getPoolOutstandingSelector(const std::string& pool, uint64_t max_outstanding) { return std::make_shared(pool, max_outstanding); } std::shared_ptr getProbaSelector(double probability) { return std::make_shared(probability); } std::shared_ptr getProxyProtocolValueSelector(uint8_t option_type, std::optional option_value) { return std::make_shared(option_type, option_value ? *option_value : ""); } std::shared_ptr getQNameLabelsCountSelector(uint16_t min_labels_count, uint16_t max_labels_count) { return std::make_shared(min_labels_count, max_labels_count); } std::shared_ptr getQNameWireLengthSelector(uint16_t min, uint16_t max) { return std::make_shared(min, max); } std::shared_ptr getRCodeSelector(uint8_t rcode) { return std::make_shared(rcode); } std::shared_ptr getRDSelector() { return std::make_shared(); } std::shared_ptr getRE2Selector(const std::string& expression) { return std::make_shared(expression); } std::shared_ptr getRecordsCountSelector(uint8_t section, uint16_t minimum, uint16_t maximum) { return std::make_shared(section, minimum, maximum); } std::shared_ptr getRecordsTypeCountSelector(uint8_t section, uint16_t record_type, uint16_t minimum, uint16_t maximum) { return std::make_shared(section, record_type, minimum, maximum); } std::shared_ptr getRegexSelector(const std::string& expression) { return std::make_shared(expression); } std::shared_ptr getSNISelector(const std::string& server_name) { return std::make_shared(server_name); } std::shared_ptr getTagSelector(const std::string& tag, std::optional value, std::optional emptyAsWildcard) { return std::make_shared(tag, value ? *value : "", emptyAsWildcard ? *emptyAsWildcard : true); } std::shared_ptr getTCPSelector(bool tcp) { return std::make_shared(tcp); } std::shared_ptr getTrailingDataSelector() { return std::make_shared(); }