Electroneum
msg_parse Struct Reference

#include <msgparse.h>

Collaboration diagram for msg_parse:

Public Attributes

uint16_t id
 
uint16_t flags
 
uint16_t qdcount
 
uint16_t ancount
 
uint16_t nscount
 
uint16_t arcount
 
size_t an_rrsets
 
size_t ns_rrsets
 
size_t ar_rrsets
 
size_t rrset_count
 
uint8_tqname
 
size_t qname_len
 
uint16_t qtype
 
uint16_t qclass
 
struct rrset_parsehashtable [PARSE_TABLE_SIZE]
 
struct rrset_parserrset_first
 
struct rrset_parserrset_last
 

Detailed Description

Data stored in scratch pad memory during parsing. Stores the data that will enter into the msgreply and packet result.

Definition at line 89 of file msgparse.h.

Member Data Documentation

◆ an_rrsets

size_t msg_parse::an_rrsets

count of RRsets per section.

Definition at line 103 of file msgparse.h.

◆ ancount

uint16_t msg_parse::ancount

count of RRs, host format

Definition at line 97 of file msgparse.h.

◆ ar_rrsets

size_t msg_parse::ar_rrsets

count of RRsets per section.

Definition at line 107 of file msgparse.h.

◆ arcount

uint16_t msg_parse::arcount

count of RRs, host format

Definition at line 101 of file msgparse.h.

◆ flags

uint16_t msg_parse::flags

flags from message, host format.

Definition at line 93 of file msgparse.h.

◆ 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.

Definition at line 124 of file msgparse.h.

◆ id

uint16_t msg_parse::id

id from message, network format.

Definition at line 91 of file msgparse.h.

◆ ns_rrsets

size_t msg_parse::ns_rrsets

count of RRsets per section.

Definition at line 105 of file msgparse.h.

◆ nscount

uint16_t msg_parse::nscount

count of RRs, host format

Definition at line 99 of file msgparse.h.

◆ qclass

uint16_t msg_parse::qclass

query class, host order. 0 if qdcount=0

Definition at line 118 of file msgparse.h.

◆ qdcount

uint16_t msg_parse::qdcount

count of RRs, host format

Definition at line 95 of file msgparse.h.

◆ qname

uint8_t* msg_parse::qname

query dname (pointer to start location in packet, NULL if none

Definition at line 112 of file msgparse.h.

◆ qname_len

size_t msg_parse::qname_len

length of query dname in octets, 0 if none

Definition at line 114 of file msgparse.h.

◆ qtype

uint16_t msg_parse::qtype

query type, host order. 0 if qdcount=0

Definition at line 116 of file msgparse.h.

◆ rrset_count

size_t msg_parse::rrset_count

total number of rrsets found.

Definition at line 109 of file msgparse.h.

◆ rrset_first

struct rrset_parse* msg_parse::rrset_first

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

Definition at line 127 of file msgparse.h.

◆ rrset_last

struct rrset_parse* msg_parse::rrset_last

last element of rrset list.

Definition at line 129 of file msgparse.h.


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