]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Make error codes for DNS errors.
authorTed Lemon <source@isc.org>
Tue, 28 Nov 2000 23:32:04 +0000 (23:32 +0000)
committerTed Lemon <source@isc.org>
Tue, 28 Nov 2000 23:32:04 +0000 (23:32 +0000)
includes/isc/result.h
omapip/result.c

index 8fc4a79f57fa1256780806b5bf0edd057e657d33..bda0da91daa3a839d4a4e4f7e9afcf450e101dd2 100644 (file)
@@ -75,8 +75,21 @@ ISC_LANG_BEGINDECLS
 #define ISC_R_KEY_UNKNOWN              47
 #define ISC_R_INVALIDKEY               48
 #define ISC_R_INCOMPLETE               49
+#define ISC_R_FORMERR                  50
+#define        ISC_R_SERVFAIL                  51
+#define        ISC_R_NXDOMAIN                  52
+#define        ISC_R_NOTIMPL                   53
+#define        ISC_R_REFUSED                   54
+#define        ISC_R_YXDOMAIN                  55
+#define        ISC_R_YXRRSET                   56
+#define        ISC_R_NXRRSET                   57
+#define        ISC_R_NOTAUTH                   58
+#define        ISC_R_NOTZONE                   59
+#define        ISC_R_BADSIG                    60
+#define        ISC_R_BADKEY                    61
+#define        ISC_R_BADTIME                   62
 
-#define ISC_R_NRESULTS                         50      /* Number of results */
+#define ISC_R_NRESULTS                         62      /* Number of results */
 
 const char *           isc_result_totext(isc_result_t);
 isc_result_t           isc_result_register(unsigned int base,
index 4a855f55c3168ab6ac3ea3e708e13723fe98825f..b1888e6e0fb2e3846ad0dcf5a906a4f77d040391 100644 (file)
@@ -95,6 +95,19 @@ static const char *text[ISC_R_NRESULTS] = {
        "zone TSIG key not known",              /* 47 */
        "invalid TSIG key",                     /* 48 */
        "operation in progress",                /* 49 */
+       "DNS format error",                     /* 50 */
+       "DNS server failed",                    /* 51 */
+       "no such domain",                       /* 52 */
+       "not implemented",                      /* 53 */
+       "refused",                              /* 54 */
+       "domain already exists",                /* 55 */
+       "RRset already exists",                 /* 56 */
+       "no such RRset",                        /* 57 */
+       "not authorized",                       /* 58 */
+       "not a zone",                           /* 59 */
+       "bad DNS signature",                    /* 60 */
+       "bad DNS key",                          /* 61 */
+       "clock skew too great"                  /* 62 */
 };
 
 const char *isc_result_totext (isc_result_t result)