]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
forgot to ci headerfile
authorYuri Schaeffer <yuri@NLnetLabs.nl>
Fri, 18 Jan 2013 15:28:21 +0000 (15:28 +0000)
committerYuri Schaeffer <yuri@NLnetLabs.nl>
Fri, 18 Jan 2013 15:28:21 +0000 (15:28 +0000)
examples/ldns-testpkts.h

index 22b1797a3ad30f6f24b5c5af08e6a6fba4e00090..88dd422f322f4c923f6b6b7b521e71bad431c874 100644 (file)
@@ -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=<value>] [all] [ttl]
        MATCH [UDP|TCP] DO
        MATCH ...
                                ; 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 */