sync code with last improvements from OpenBSD
This commit is contained in:
parent
30d14db1d3
commit
0c904fa153
235 changed files with 12410 additions and 6193 deletions
|
@ -619,6 +619,12 @@ struct module_qstate {
|
|||
/** if this is a validation recursion query that does not get
|
||||
* validation itself */
|
||||
int is_valrec;
|
||||
#ifdef CLIENT_SUBNET
|
||||
/** the client network address is needed for the client-subnet option
|
||||
* when prefetching, but we can't use reply_list in mesh_info, because
|
||||
* we don't want to send a reply for the internal query. */
|
||||
struct sockaddr_storage client_addr;
|
||||
#endif
|
||||
|
||||
/** comm_reply contains server replies */
|
||||
struct comm_reply* reply;
|
||||
|
@ -671,6 +677,8 @@ struct module_qstate {
|
|||
* those servers. By comparing expiry time with qstarttime for type NS.
|
||||
*/
|
||||
time_t qstarttime;
|
||||
/** whether a message from cachedb will be used for the reply */
|
||||
int is_cachedb_answer;
|
||||
|
||||
/**
|
||||
* Attributes of clients that share the qstate that may affect IP-based
|
||||
|
@ -818,11 +826,11 @@ void errinf_dname(struct module_qstate* qstate, const char* str,
|
|||
* This string is malloced and has to be freed by caller.
|
||||
*/
|
||||
char* errinf_to_str_bogus(struct module_qstate* qstate);
|
||||
|
||||
/**
|
||||
* Check the sldns_ede_code of the qstate.
|
||||
* Check the sldns_ede_code of the qstate->errinf.
|
||||
* @param qstate: query state.
|
||||
* @return LDNS_EDE_DNSSEC_BOGUS by default, or the first explicitly set
|
||||
* sldns_ede_code.
|
||||
* @return the latest explicitly set sldns_ede_code or LDNS_EDE_NONE.
|
||||
*/
|
||||
sldns_ede_code errinf_to_reason_bogus(struct module_qstate* qstate);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue