]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - support/resolv_test.h
resolv: Reduce EDNS payload size to 1200 bytes [BZ #21361]
[thirdparty/glibc.git] / support / resolv_test.h
index 7a9f1f7ae867d4771176fa45430537652819c982..6498751569f22319050705477a67f604652d8882 100644 (file)
 
 __BEGIN_DECLS
 
+/* Information about EDNS properties of a DNS query.  */
+struct resolv_edns_info
+{
+  bool active;
+  uint8_t extended_rcode;
+  uint8_t version;
+  uint16_t flags;
+  uint16_t payload_size;
+};
+
 /* This struct provides context information when the response callback
    specified in struct resolv_redirect_config is invoked. */
 struct resolv_response_context
@@ -33,6 +43,7 @@ struct resolv_response_context
   size_t query_length;
   int server_index;
   bool tcp;
+  struct resolv_edns_info edns;
 };
 
 /* This opaque struct is used to construct responses from within the