From: Yuri Schaeffer Date: Fri, 18 Jan 2013 15:28:21 +0000 (+0000) Subject: forgot to ci headerfile X-Git-Tag: release-1.6.17rc1~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e68d6da78663a3137f317a0e7246ef8054232ce;p=thirdparty%2Fldns.git forgot to ci headerfile --- diff --git a/examples/ldns-testpkts.h b/examples/ldns-testpkts.h index 22b1797a..88dd422f 100644 --- a/examples/ldns-testpkts.h +++ b/examples/ldns-testpkts.h @@ -48,6 +48,7 @@ ; 'ttl' used with all, rrs in packet must also have matching TTLs. ; 'DO' will match only queries with DO bit set. ; 'noedns' matches queries without EDNS OPT records. + ; 'ednsdata' matches queries to HEX_EDNS section. MATCH [opcode] [qtype] [qname] [serial=] [all] [ttl] MATCH [UDP|TCP] DO MATCH ... @@ -82,6 +83,11 @@ ; be parsed, ADJUST rules for the answer packet ; are ignored. Only copy_id is done. HEX_ANSWER_END + HEX_EDNS_BEGIN ; follow with hex data. + ; Raw EDNS data to match against. It must be an + ; exact match (all options are matched) and will be + ; evaluated only when 'MATCH ednsdata' given. + HEX_EDNS_END ENTRY_END @@ -142,6 +148,8 @@ struct reply_packet { struct reply_packet* next; /** the reply pkt */ ldns_pkt* reply; + /** Additional EDNS data for matching queries. */ + ldns_buffer* raw_ednsdata; /** or reply pkt in hex if not parsable */ ldns_buffer* reply_from_hex; /** seconds to sleep before giving packet */ @@ -171,6 +179,8 @@ struct entry { bool match_do; /** match absence of EDNS OPT record in query */ bool match_noedns; + /** match edns data field given in hex */ + bool match_ednsdata_raw; /** match query serial with this value. */ uint32_t ixfr_soa_serial; /** match on UDP/TCP */