InternalQueryState& operator=(const InternalQueryState& orig) = delete;
boost::optional<Netmask> subnet{boost::none}; // 40
- std::unordered_set<QType> ttlCapTypes;
ComboAddress origRemote; // 28
ComboAddress origDest; // 28
ComboAddress hopRemote;
if (dr.ids.ttlCap > 0) {
std::string result;
- LimitTTLResponseAction ac(0, dr.ids.ttlCap, dr.ids.ttlCapTypes);
+ LimitTTLResponseAction ac(0, dr.ids.ttlCap, {});
ac(&dr, &result);
}
if (dr.ids.ttlCap > 0) {
std::string result;
- LimitTTLResponseAction ac(0, dr.ids.ttlCap, dr.ids.ttlCapTypes);
+ LimitTTLResponseAction ac(0, dr.ids.ttlCap, {});
ac(&dr, &result);
}
/* decrease the returned TTL but _after_ inserting the original response into the packet cache */
void dnsdist_ffi_dnsquestion_set_max_returned_ttl(dnsdist_ffi_dnsquestion_t* dq, uint32_t max) __attribute__ ((visibility ("default")));
-/* add a record type to apply the TTL cap to (see above) */
-void dnsdist_ffi_dnsquestion_add_type_to_max_returned_ttl(dnsdist_ffi_dnsquestion_t* dr, uint16_t type) __attribute__ ((visibility ("default")));;
typedef struct dnsdist_ffi_servers_list_t dnsdist_ffi_servers_list_t;
typedef struct dnsdist_ffi_server_t dnsdist_ffi_server_t;
void dnsdist_ffi_dnsresponse_limit_ttl(dnsdist_ffi_dnsresponse_t* dr, uint32_t min, uint32_t max) __attribute__ ((visibility ("default")));
/* decrease the returned TTL but _after_ inserting the original response into the packet cache */
void dnsdist_ffi_dnsresponse_set_max_returned_ttl(dnsdist_ffi_dnsresponse_t* dr, uint32_t max) __attribute__ ((visibility ("default")));
-/* add a record type to apply the TTL cap to (see above) */
-void dnsdist_ffi_dnsresponse_add_type_to_max_returned_ttl(dnsdist_ffi_dnsresponse_t* dr, uint16_t type) __attribute__ ((visibility ("default")));;
void dnsdist_ffi_dnsresponse_clear_records_type(dnsdist_ffi_dnsresponse_t* dr, uint16_t qtype) __attribute__ ((visibility ("default")));
typedef struct dnsdist_ffi_proxy_protocol_value {
}
}
-void dnsdist_ffi_dnsquestion_add_type_to_max_returned_ttl(dnsdist_ffi_dnsquestion_t* dq, uint16_t type)
-{
- if (dq != nullptr && dq->dq != nullptr) {
- dq->dq->ids.ttlCapTypes.insert(type);
- }
-}
-
size_t dnsdist_ffi_servers_list_get_count(const dnsdist_ffi_servers_list_t* list)
{
return list->ffiServers.size();
}
}
-void dnsdist_ffi_dnsresponse_add_type_to_max_returned_ttl(dnsdist_ffi_dnsresponse_t* dr, uint16_t type)
-{
- if (dr != nullptr && dr->dr != nullptr) {
- dr->dr->ids.ttlCapTypes.insert(type);
- }
-}
-
void dnsdist_ffi_dnsresponse_clear_records_type(dnsdist_ffi_dnsresponse_t* dr, uint16_t qtype)
{
if (dr != nullptr && dr->dr != nullptr) {