Electroneum
query_info Struct Reference

#include <msgreply.h>

Collaboration diagram for query_info:

Public Attributes

uint8_tqname
 
size_t qname_len
 
uint16_t qtype
 
uint16_t qclass
 
struct local_rrsetlocal_alias
 

Detailed Description

Structure to store query information that makes answers to queries different.

Definition at line 69 of file msgreply.h.

Member Data Documentation

◆ local_alias

struct local_rrset* query_info::local_alias

Alias local answer(s) for the qname. If 'qname' is an alias defined in a local zone, this field will be set to the corresponding local RRset when the alias is determined. In the initial implementation this can only be a single CNAME RR (or NULL), but it could possibly be extended to be a DNAME or a chain of aliases. Users of this structure are responsible to initialize this field to be NULL; otherwise other part of query handling code may be confused. Users also have to be careful about the lifetime of data. On return from local zone lookup, it may point to data derived from configuration that may be dynamically invalidated or data allocated in an ephemeral regional allocator. A deep copy of the data may have to be generated if it has to be kept during iterative resolution.

Definition at line 98 of file msgreply.h.

◆ qclass

uint16_t query_info::qclass

qclass, host byte order

Definition at line 81 of file msgreply.h.

◆ qname

uint8_t* query_info::qname

Salient data on the query: qname, in wireformat. can be allocated or a pointer to outside buffer. User has to keep track on the status of this.

Definition at line 75 of file msgreply.h.

◆ qname_len

size_t query_info::qname_len

length of qname (including last 0 octet)

Definition at line 77 of file msgreply.h.

◆ qtype

uint16_t query_info::qtype

qtype, host byte order

Definition at line 79 of file msgreply.h.


The documentation for this struct was generated from the following file: