Unify logic to tell if DNS response is too big.

This commit is contained in:
Tom Wilkie committed 2015-08-21 12:39:12 +00:00
1 parent 58dafbfa9d
commit 8516ab7c69
2 files changed
+16 -6

No files matched your search

+9 -2
View File
@@ -16,8 +16,15 @@ for i in $(seq $N); do
done
weave_on $HOST1 dns-add $IPS $CID -h $NAME
assert_dns_record $HOST1 c0 $NAME $IPS
assert_raises "exec_on $HOST1 c0 dig MX $NAME | grep -q 'status: NXDOMAIN'"
check() {
assert "exec_on $HOST1 c0 dig +short $@ $NAME A | grep -v ';;' | wc -l" $N
}
check
check +tcp
check +bufsize=700
check +tcp +bufsize=700
end_suite