unbound 0.1
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_rcode
 match rcode with answer rcode
uint8_t match_question
 match question section
uint8_t match_answer
 match answer section
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_ede
 match EDNS EDE info-code
uint8_t match_ede_any
 match any EDNS EDE info-code
uint8_t match_all
 match all of the packet
uint8_t match_all_noedns
 match all of the packet; ignore EDNS
uint8_t match_ttl
 match ttls in the packet
uint8_t match_do
 match DO bit
uint8_t match_co
 match CO bit
uint8_t match_noedns
 match absence of EDNS OPT record in query
uint8_t match_ednsdata_raw
 match edns data field given in hex
uint8_t match_client_cookie
 match an DNS cookie of length 8
uint8_t match_server_cookie
 match an DNS cookie of length 24
uint32_t ixfr_soa_serial
 match query serial with this value.
enum transport_type match_transport
 match on UDP/TCP
uint16_t ede_info_code
 match EDNS EDE info-code with this value.
struct reply_packet * reply_list
 pre canned reply
uint8_t copy_id
 how to adjust the reply packet
uint8_t copy_query
 copy the query nametypeclass from query into the answer
uint8_t copy_ednsdata_assume_clientsubnet
 copy ednsdata to reply, assume it is clientsubnet and adjust scopemask to match sourcemask
uint8_t increment_ecs_scope
 increment the ECS scope copied from the sourcemask by one
unsigned int sleeptime
 in seconds
int lineno
 some number that names this entry, line number in file or so
struct entry * next
 next in list

Detailed Description

data structure to keep the canned queries in.

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

Field Documentation

◆ match_opcode

uint8_t entry::match_opcode

match query opcode with answer opcode

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

◆ match_qtype

uint8_t entry::match_qtype

match qtype with answer qtype

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

◆ match_qname

uint8_t entry::match_qname

match qname with answer qname

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

◆ match_rcode

uint8_t entry::match_rcode

match rcode with answer rcode

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

◆ match_question

uint8_t entry::match_question

match question section

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

◆ match_answer

uint8_t entry::match_answer

match answer section

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

◆ match_subdomain

uint8_t entry::match_subdomain

match qname as subdomain of answer qname

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

◆ match_serial

uint8_t entry::match_serial

match SOA serial number, from auth section

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

◆ match_ede

uint8_t entry::match_ede

match EDNS EDE info-code

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

◆ match_ede_any

uint8_t entry::match_ede_any

match any EDNS EDE info-code

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

◆ match_all

uint8_t entry::match_all

match all of the packet

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

◆ match_all_noedns

uint8_t entry::match_all_noedns

match all of the packet; ignore EDNS

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

◆ match_ttl

uint8_t entry::match_ttl

match ttls in the packet

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

◆ match_do

uint8_t entry::match_do

match DO bit

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

◆ match_co

uint8_t entry::match_co

match CO bit

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

◆ match_noedns

uint8_t entry::match_noedns

match absence of EDNS OPT record in query

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

◆ match_ednsdata_raw

uint8_t entry::match_ednsdata_raw

match edns data field given in hex

Referenced by find_match(), and matchline().

◆ match_client_cookie

uint8_t entry::match_client_cookie

match an DNS cookie of length 8

Referenced by find_match(), and matchline().

◆ match_server_cookie

uint8_t entry::match_server_cookie

match an DNS cookie of length 24

Referenced by find_match(), and matchline().

◆ ixfr_soa_serial

uint32_t entry::ixfr_soa_serial

match query serial with this value.

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

◆ match_transport

enum transport_type entry::match_transport

match on UDP/TCP

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

◆ ede_info_code

uint16_t entry::ede_info_code

match EDNS EDE info-code with this value.

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

◆ reply_list

◆ copy_id

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().

◆ copy_query

uint8_t entry::copy_query

copy the query nametypeclass from query into the answer

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

◆ copy_ednsdata_assume_clientsubnet

uint8_t entry::copy_ednsdata_assume_clientsubnet

copy ednsdata to reply, assume it is clientsubnet and adjust scopemask to match sourcemask

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

◆ increment_ecs_scope

uint8_t entry::increment_ecs_scope

increment the ECS scope copied from the sourcemask by one

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

◆ sleeptime

unsigned int entry::sleeptime

in seconds

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

◆ lineno

int entry::lineno

some number that names this entry, line number in file or so

Referenced by answer_check_it(), and read_entry().

◆ next


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