Commit 728467c5 authored by Mark Andrews's avatar Mark Andrews

test DO + CD

parent 72f964fd
Pipeline #2397 passed with stages
in 1 minute 27 seconds
......@@ -271,6 +271,10 @@ static struct {
4096, 0x8000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ns_t_soa,
"dig +edns=0 +nocookie +noad +norec +dnssec SOA <zone>"
},
{ "docd", FULL, 0, "",
4096, 0x8000, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, ns_t_soa,
"dig +edns=0 +nocookie +noad +norec +dnssec SOA <zone>"
},
{ "edns1do", FULL, 0, "", 4096, 0x8000, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ns_t_soa,
"dig +edns=1 +noednsneg +nocookie +noad +norec +dnssec SOA <zone>"
},
......@@ -2058,6 +2062,9 @@ process(struct workitem *item, unsigned char *buf, int buflen) {
if (seenopt && (opts[item->test].flags & 0x8000) != 0 &&
(ednsttl & 0x8000) == 0 && seenrrsig)
addtag(item, "nodo"), ok = 0;
if (seenopt && (opts[item->test].flags & 0x8000) != 0 &&
opts[item->test].cd && (ednsttl & 0x8000) != 0 && !cd && seenrrsig)
addtag(item, "nocd"), ok = 0;
/* AA is only defined for QUERY */
if (!aa && opts[item->test].version == 0 &&
......
......@@ -230,6 +230,9 @@ if all subtests to a particular server succeed.
**do EDNS**
: Send a EDNS version 0 query with type code SOA and DO set to 1.
**docd FULL**
: Send a FULL version 0 query with type code SOA, DO set to 1 and CD set to 1.
**edns1do FULL**
: Send a EDNS version 1 query with type code SOA and DO set to 1.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment