4281. [bug] Teach dns_message_totext about BADCOOKIE. [RT #41257]

This commit is contained in:
Mark Andrews
2015-12-15 19:49:40 +11:00
parent ecc06cbc32
commit f647c0df9f
5 changed files with 23 additions and 29 deletions

View File

@@ -127,6 +127,8 @@ n=`expr $n + 1`
echo "I:checking require-server-cookie yes ($n)"
ret=0
$DIG +qr +cookie +nobadcookie soa @10.53.0.3 -p 5300 > dig.out.test$n
grep "flags: qr[^;]* aa[ ;]" dig.out.test$n > /dev/null && ret=1
grep "flags: qr[^;]* ad[ ;]" dig.out.test$n > /dev/null && ret=1
grep BADCOOKIE dig.out.test$n > /dev/null || ret=1
linecount=`getcookie dig.out.test$n | wc -l`
if [ $linecount != 2 ]; then ret=1; fi