Commit 35fb45af authored by Andreas Gustafsson's avatar Andreas Gustafsson
Browse files

when checking whether the TC flag is set, ignore the other

flags - in particular, we don't care whether the AD flag is set or not
parent 1697c110
......@@ -15,7 +15,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
# $Id: tests.sh,v 1.11 2000/11/20 17:53:28 gson Exp $
# $Id: tests.sh,v 1.12 2000/11/22 01:21:44 gson Exp $
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
......@@ -51,7 +51,10 @@ $PERL ../digcomp.pl knowngood.dig.out.a-maximum-rrset dig.out.ns1 || status=1
echo "I:exceed maximum rrset (5000 A records)"
$DIG +tcp +norec 5000.example. @10.53.0.1 a -p 5300 > dig.out.ns1 || status=1
# Look for truncation bit (tc).
grep 'flags: qr aa tc ad;' dig.out.ns1 > /dev/null || status=1
grep 'flags: .*tc.*;' dig.out.ns1 > /dev/null || {
echo "I:TC bit was not set"
status=1
}
echo "I:exit status: $status"
exit $status
Supports Markdown
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