mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-14 00:30:00 -04:00
Adjust legacy and digdelv tests for default 1232 EDNS Buffer Size
* the legacy test with -T maxudp512 will just fail, e.g. if the packets larger than 512 octets are dropped along the path, the proper response is to fail * digdelv test was just expecting default server EDNS buffer size to be 4096, the test needed only slight adjustment
This commit is contained in:
parent
bb990030d3
commit
f1556f8c41
2 changed files with 6 additions and 4 deletions
|
|
@ -958,8 +958,10 @@ if [ -x "$DIG" ] ; then
|
|||
echo_i "check that dig +bufsize restores default bufsize ($n)"
|
||||
ret=0
|
||||
dig_with_opts @10.53.0.3 a.example +bufsize=0 +bufsize +qr > dig.out.test$n 2>&1 || ret=1
|
||||
lines=`grep "EDNS:.* udp: 4096" dig.out.test$n | wc -l`
|
||||
test $lines -eq 2 || ret=1
|
||||
lines1232=`grep "EDNS:.* udp: 1232" dig.out.test$n | wc -l`
|
||||
lines4096=`grep "EDNS:.* udp: 4096" dig.out.test$n | wc -l`
|
||||
test $lines1232 -eq 1 || ret=1
|
||||
test $lines4096 -eq 1 || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
|
|
|
|||
|
|
@ -199,9 +199,9 @@ if [ $ret != 0 ]; then echo_i "failed"; fi
|
|||
status=`expr $status + $ret`
|
||||
|
||||
n=`expr $n + 1`
|
||||
echo_i "checking recursive lookup to edns 512 server succeeds ($n)"
|
||||
echo_i "checking recursive lookup to edns 512 server fails ($n)"
|
||||
ret=0
|
||||
resolution_succeeds edns512. || ret=1
|
||||
resolution_fails edns512. || ret=1
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue