Commit 43288046 authored by Mark Andrews's avatar Mark Andrews
Browse files

add noopt/opt

parent afcb5d91
......@@ -1058,6 +1058,10 @@ process(struct workitem *item, unsigned char *buf, int n) {
addtag(item, rcodetext(rcode)), ok = 0;
if ((ednsttl & 0xff0000) != 0)
addtag(item, "badversion"), ok = 0;
if (!seenopt && opts[item->test].udpsize)
addtag(item, "noopt"), ok = 0;
if (seenopt && opts[item->test].udpsize == 0)
addtag(item, "opt"), ok = 0;
if (opts[item->test].type == ns_t_soa)
if (opts[item->test].version == 0 &&
!opts[item->test].ignore && !seensoa)
......
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