aboutsummaryrefslogtreecommitdiff
path: root/support/resolv_test.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-10-14 10:54:39 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-10-14 10:54:39 +0200
commit08443b19965f48862b02c2fd7b33a39d66daf2ff (patch)
tree31bd0a4a7823bd08227e2e2f1e10f81aabfa4d00 /support/resolv_test.h
parent873e239a4c3d8ec235c27439c1bdc5bbf8aa1818 (diff)
downloadglibc-08443b19965f48862b02c2fd7b33a39d66daf2ff.tar
glibc-08443b19965f48862b02c2fd7b33a39d66daf2ff.tar.gz
glibc-08443b19965f48862b02c2fd7b33a39d66daf2ff.tar.bz2
glibc-08443b19965f48862b02c2fd7b33a39d66daf2ff.zip
support: Provide a way to clear the RA bit in DNS server responses
Diffstat (limited to 'support/resolv_test.h')
-rw-r--r--support/resolv_test.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/support/resolv_test.h b/support/resolv_test.h
index c46de32ff4..31a5c1c3e7 100644
--- a/support/resolv_test.h
+++ b/support/resolv_test.h
@@ -148,6 +148,10 @@ struct resolv_response_flags
/* If true, the AD (authenticated data) flag will be set. */
bool ad;
+ /* If true, do not set the RA (recursion available) flag in the
+ response. */
+ bool clear_ra;
+
/* Initial section count values. Can be used to artificially
increase the counts, for malformed packet testing.*/
unsigned short qdcount;