Data Fields
entry Struct Reference

data structure to keep the canned queries in. More...

#include <testpkts.h>

Data Fields

uint8_t match_opcode
 match query opcode with answer opcode
 
uint8_t match_qtype
 match qtype with answer qtype
 
uint8_t match_qname
 match qname with answer qname
 
uint8_t match_subdomain
 match qname as subdomain of answer qname
 
uint8_t match_serial
 match SOA serial number, from auth section
 
uint8_t match_all
 match all of the packet
 
uint8_t match_ttl
 match ttls in the packet
 
uint8_t match_do
 match DO bit
 
uint8_t match_noedns
 match absence of EDNS OPT record in query
 
uint32_t ixfr_soa_serial
 match query serial with this value. More...
 
enum transport_type match_transport
 match on UDP/TCP
 
struct reply_packetreply_list
 pre canned reply
 
uint8_t copy_id
 how to adjust the reply packet More...
 
uint8_t copy_query
 copy the query nametypeclass from query into the answer
 
unsigned int sleeptime
 in seconds
 
int lineno
 some number that names this entry, line number in file or so
 
struct entrynext
 next in list
 

Detailed Description

data structure to keep the canned queries in.

format is the 'matching query' and the 'canned answer'

Field Documentation

uint32_t entry::ixfr_soa_serial

match query serial with this value.

Referenced by find_match(), matchline(), and new_entry().

uint8_t entry::copy_id

how to adjust the reply packet

copy over the ID from the query into the answer

Referenced by adjust_packet(), adjustline(), new_entry(), and run_scenario().


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