]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add ISC_R_NOMORE to dlz_minimal.h, document its use in findzone() routines.
authorEvan Hunt <each@isc.org>
Fri, 11 Nov 2011 01:00:40 +0000 (01:00 +0000)
committerEvan Hunt <each@isc.org>
Fri, 11 Nov 2011 01:00:40 +0000 (01:00 +0000)
No CHANGES note.

contrib/dlz/example/README
contrib/dlz/example/dlz_minimal.h

index 42d38ce455eb4d2ba0be20fb6441f4198600a7b1..3468b6d8f2d990d01f7efba2ed2c255258648977 100644 (file)
@@ -110,9 +110,12 @@ are mandatory, others optional).
 
   - isc_result_t dlz_findzonedb(void *dbdata, const char *name);
 
-    Required for all external DLZ modules.  This indicates whether the
-    DLZ module can answer for a given zone.  Returns ISC_R_SUCCESS if
-    so, otherwise ISC_R_NOTFOUND.
+    Required for all external DLZ modules.  This indicates whether
+    the DLZ module can answer for the given name.  Returns ISC_R_SUCCESS
+    if so, and ISC_R_NOTFOUND if not.  As an optimization, it can
+    also return ISC_R_NOMORE: this indicates that the DLZ module has
+    no data for the given name or for any name above it in the DNS.
+    This prevents named from searching for a zone cut.
 
    - isc_result_t dlz_lookup(const char *zone, const char *name, void *dbdata,
                              dns_sdlzlookup_t *lookup,
index bfad3b2ad0bab0623d3fd2c459854f11fdfb9214..c72c1d4c75206ac5f13a9c27e96fba59914ba674 100644 (file)
@@ -47,6 +47,7 @@ typedef uint32_t dns_ttl_t;
 #define ISC_R_NOPERM                   6
 #define ISC_R_NOTFOUND                 23
 #define ISC_R_FAILURE                  25
+#define ISC_R_NOMORE                   29
 
 /* boolean values */
 #define ISC_TRUE 1