unbound  0.1
Data Fields
msg_parse Struct Reference

Data stored in scratch pad memory during parsing. More...

#include <msgparse.h>

Data Fields

uint16_t id
 id from message, network format. More...
 
uint16_t flags
 flags from message, host format. More...
 
uint16_t qdcount
 count of RRs, host format
 
uint16_t ancount
 count of RRs, host format
 
uint16_t nscount
 count of RRs, host format
 
uint16_t arcount
 count of RRs, host format
 
size_t an_rrsets
 count of RRsets per section. More...
 
size_t ns_rrsets
 count of RRsets per section. More...
 
size_t ar_rrsets
 count of RRsets per section. More...
 
size_t rrset_count
 total number of rrsets found. More...
 
uint8_t * qname
 query dname (pointer to start location in packet, NULL if none
 
size_t qname_len
 length of query dname in octets, 0 if none
 
uint16_t qtype
 query type, host order. More...
 
uint16_t qclass
 query class, host order. More...
 
struct rrset_parsehashtable [PARSE_TABLE_SIZE]
 Hash table array used during parsing to lookup rrset types. More...
 
struct rrset_parserrset_first
 linked list of rrsets that have been found (in order). More...
 
struct rrset_parserrset_last
 last element of rrset list. More...
 

Detailed Description

Data stored in scratch pad memory during parsing.

Stores the data that will enter into the msgreply and packet result.

Field Documentation

◆ id

uint16_t msg_parse::id

id from message, network format.

◆ flags

uint16_t msg_parse::flags

flags from message, host format.

Referenced by get_rrset_trust(), parse_create_repinfo(), scrub_message(), and scrub_normalize().

◆ an_rrsets

size_t msg_parse::an_rrsets

count of RRsets per section.

Referenced by parse_create_repinfo().

◆ ns_rrsets

size_t msg_parse::ns_rrsets

count of RRsets per section.

Referenced by parse_create_repinfo().

◆ ar_rrsets

size_t msg_parse::ar_rrsets

count of RRsets per section.

Referenced by parse_create_repinfo().

◆ rrset_count

size_t msg_parse::rrset_count

total number of rrsets found.

Referenced by parse_create_repinfo(), and remove_rrset().

◆ qtype

uint16_t msg_parse::qtype

query type, host order.

0 if qdcount=0

Referenced by parse_create_qinfo().

◆ qclass

uint16_t msg_parse::qclass

query class, host order.

0 if qdcount=0

Referenced by parse_create_qinfo().

◆ hashtable

struct rrset_parse* msg_parse::hashtable[PARSE_TABLE_SIZE]

Hash table array used during parsing to lookup rrset types.

Based on name, type, class. Same hash value as in rrset cache.

Referenced by msgparse_bucket_remove(), msgparse_hashtable_lookup(), and new_rrset().

◆ rrset_first

struct rrset_parse* msg_parse::rrset_first

linked list of rrsets that have been found (in order).

Referenced by change_section(), new_rrset(), parse_copy_decompress(), parse_extract_edns(), remove_rrset(), scrub_sanitize(), and soa_in_auth().

◆ rrset_last

struct rrset_parse* msg_parse::rrset_last

last element of rrset list.

Referenced by change_section(), new_rrset(), and remove_rrset().


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