]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Document 'ub_result.was_ratelimited' in libunbound.
authorGeorge Thessalonikefs <george@nlnetlabs.nl>
Mon, 10 Feb 2020 09:31:47 +0000 (10:31 +0100)
committerGeorge Thessalonikefs <george@nlnetlabs.nl>
Mon, 10 Feb 2020 09:31:47 +0000 (10:31 +0100)
doc/Changelog
doc/libunbound.3.in
libunbound/unbound.h

index 9fec42bbe8692f6a3771f74e528480f8b2351599..dc2856263890dc8b30e297d85ec8f5ed4cac3932 100644 (file)
@@ -1,3 +1,6 @@
+10 February 2020: George
+       - Document 'ub_result.was_ratelimited' in libunbound.
+
 6 February 2020: George
        - Fix num_reply_states and num_detached_states counting with
          serve_expired_callback.
index 5bd4ad8a1c933d36b09dcc5340badf5955cde58e..548969142f4a956e5ef01f320b6c5952efeeee39 100644 (file)
@@ -396,12 +396,13 @@ The result of the DNS resolution and validation is returned as
                char* canonname; /* canonical name of result */
                int rcode;   /* additional error code in case of no data */
                void* answer_packet; /* full network format answer packet */
-               int answer_len; /* length of packet in octets */
+               int answer_len;  /* length of packet in octets */
                int havedata; /* true if there is data */
                int nxdomain; /* true if nodata because name does not exist */
-               int secure;  /* true if result is secure */
-               int bogus;   /* true if a security failure happened */
+               int secure;   /* true if result is secure */
+               int bogus;    /* true if a security failure happened */
                char* why_bogus; /* string with error if bogus */
+               int was_ratelimited; /* true if the query was ratelimited (SERVFAIL) by unbound */
                int ttl;     /* number of seconds the result is valid */
        };
 .fi
index 04661838c189a49bbced4da0d0432657f7d182e0..ca9592d62d52685b0dd99d395d3e57126db2418b 100644 (file)
@@ -204,8 +204,9 @@ struct ub_result {
        char* why_bogus;
 
        /**
-        * If the query or one of its subqueries was ratelimited. Useful if
-        * ratelimiting is enabled and answer is SERVFAIL.
+        * If the query or one of its subqueries was ratelimited.  Useful if
+        * ratelimiting is enabled and answer to the client is SERVFAIL as a
+        * result.
         */
        int was_ratelimited;