2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

cross-reference error strings with their result.h macros

This commit is contained in:
David Lawrence
2000-07-26 21:31:52 +00:00
parent 10680f2169
commit ef4010aae7

View File

@@ -15,7 +15,7 @@
* SOFTWARE. * SOFTWARE.
*/ */
/* $Id: result.c,v 1.66 2000/07/20 19:32:57 bwelling Exp $ */ /* $Id: result.c,v 1.67 2000/07/26 21:31:52 tale Exp $ */
#include <config.h> #include <config.h>
@@ -26,88 +26,103 @@
#include <dns/lib.h> #include <dns/lib.h>
static const char *text[DNS_R_NRESULTS] = { static const char *text[DNS_R_NRESULTS] = {
"label too long", /* 0 */ "label too long", /* 0 DNS_R_LABELTOOLONG */
"bad escape", /* 1 */ "bad escape", /* 1 DNS_R_BADESCAPE */
"bad bitstring", /* 2 */ "bad bitstring", /* 2 DNS_R_BADBITSTRING */
"bitstring too long", /* 3 */ "bitstring too long", /* 3 DNS_R_BITSTRINGTOOLONG */
"empty label", /* 4 */ "empty label", /* 4 DNS_R_EMPTYLABEL */
"bad dotted quad", /* 5 */
"invalid NS owner name (wildcard)", /* 6 */ "bad dotted quad", /* 5 DNS_R_BADDOTTEDQUAD */
"unknown class/type", /* 7 */ "invalid NS owner name (wildcard)", /* 6 DNS_R_INVALIDNS */
"bad label type", /* 8 */ "unknown class/type", /* 7 DNS_R_UNKNOWN */
"bad compression pointer", /* 9 */ "bad label type", /* 8 DNS_R_BADLABELTYPE */
"too many hops", /* 10 */ "bad compression pointer", /* 9 DNS_R_BADPOINTER */
"disallowed (by application policy)", /* 11 */
"extra input text", /* 12 */ "too many hops", /* 10 DNS_R_TOOMANYHOPS */
"extra input data", /* 13 */ "disallowed (by application policy)", /* 11 DNS_R_DISALLOWED */
"text too long", /* 14 */ "extra input text", /* 12 DNS_R_EXTRATOKEN */
"not at top of zone", /* 15 */ "extra input data", /* 13 DNS_R_EXTRADATA */
"syntax error", /* 16 */ "text too long", /* 14 DNS_R_TEXTTOOLONG */
"bad checksum", /* 17 */
"bad IPv6 address", /* 18 */ "not at top of zone", /* 15 DNS_R_NOTZONETOP */
"no owner", /* 19 */ "syntax error", /* 16 DNS_R_SYNTAX */
"no ttl", /* 20 */ "bad checksum", /* 17 DNS_R_BADCKSUM */
"bad class", /* 21 */ "bad IPv6 address", /* 18 DNS_R_BADAAAA */
"name too long", /* 22 */ "no owner", /* 19 DNS_R_NOOWNER */
"partial match", /* 23 */
"new origin", /* 24 */ "no ttl", /* 20 DNS_R_NOTTL */
"unchanged", /* 25 */ "bad class", /* 21 DNS_R_BADCLASS */
"bad ttl", /* 26 */ "name too long", /* 22 DNS_R_NAMETOOLONG */
"more data needed/to be rendered", /* 27 */ "partial match", /* 23 DNS_R_PARTIALMATCH */
"continue", /* 28 */ "new origin", /* 24 DNS_R_NEWORIGIN */
"delegation", /* 29 */
"glue", /* 30 */ "unchanged", /* 25 DNS_R_UNCHANGED */
"dname", /* 31 */ "bad ttl", /* 26 DNS_R_BADTTL */
"cname", /* 32 */ "more data needed/to be rendered", /* 27 DNS_R_NOREDATA */
"bad database", /* 33 */ "continue", /* 28 DNS_R_CONTINUE */
"zonecut", /* 34 */ "delegation", /* 29 DNS_R_DELEGATION */
"bad zone", /* 35 */
"more data", /* 36 */ "glue", /* 30 DNS_R_GLUE */
"up to date", /* 37 */ "dname", /* 31 DNS_R_DNAME */
"tsig verify failure", /* 38 */ "cname", /* 32 DNS_R_CNAME */
"tsig indicates error", /* 39 */ "bad database", /* 33 DNS_R_BADDB */
"SIG failed to verify", /* 40 */ "zonecut", /* 34 DNS_R_ZONECUT */
"SIG has expired", /* 41 */
"SIG validity period has not begun", /* 42 */ "bad zone", /* 35 DNS_R_BADZONE */
"key is unauthorized to sign data", /* 43 */ "more data", /* 36 DNS_R_MOREDATA */
"invalid time", /* 44 */ "up to date", /* 37 DNS_R_UPTODATE */
"expected a TSIG", /* 45 */ "tsig verify failure", /* 38 DNS_R_TSIGVERIFYFAILURE */
"did not expect a TSIG", /* 46 */ "tsig indicates error", /* 39 DNS_R_TSIGERRORSET */
"TKEY is unacceptable", /* 47 */
"hint", /* 48 */ "SIG failed to verify", /* 40 DNS_R_SIGINVALID */
"drop", /* 49 */ "SIG has expired", /* 41 DNS_R_SIGEXPIRED */
"zone not loaded", /* 50 */ "SIG validity period has not begun", /* 42 DNS_R_SIGFUTURE */
"ncache nxdomain", /* 51 */ "key is unauthorized to sign data", /* 43 DNS_R_KEYUNAUTHORIZED */
"ncache nxrrset", /* 52 */ "invalid time", /* 44 DNS_R_INVALIDTIME */
"wait", /* 53 */
"not verified yet", /* 54 */ "expected a TSIG", /* 45 DNS_R_EXPECTEDTSIG */
"no identity", /* 55 */ "did not expect a TSIG", /* 46 DNS_R_UNEXPECTEDTSIG */
"no journal", /* 56 */ "TKEY is unacceptable", /* 47 DNS_R_INVALIDTKEY */
"alias", /* 57 */ "hint", /* 48 DNS_R_HINT */
"use TCP", /* 58 */ "drop", /* 49 DNS_R_DROP */
"no valid SIG", /* 59 */
"no valid NXT", /* 60 */ "zone not loaded", /* 50 DNS_R_NOTLOADED */
"not insecure" /* 61 */ "ncache nxdomain", /* 51 DNS_R_NCACHENXDOMAIN */
"ncache nxrrset", /* 52 DNS_R_NCACHENXRRSET */
"wait", /* 53 DNS_R_WAIT */
"not verified yet", /* 54 DNS_R_NOTVERIFIEDYET */
"no identity", /* 55 DNS_R_NOIDENTITY */
"no journal", /* 56 DNS_R_NOJOURNAL */
"alias", /* 57 DNS_R_ALIAS */
"use TCP", /* 58 DNS_R_USETCP */
"no valid SIG", /* 59 DNS_R_NOVALIDSIG */
"no valid NXT", /* 60 DNS_R_NOVALIDNXT */
"not insecure" /* 61 DNS_R_NOTINSECURE */
}; };
static const char *rcode_text[DNS_R_NRCODERESULTS] = { static const char *rcode_text[DNS_R_NRCODERESULTS] = {
"NOERROR", /* 0 */ "NOERROR", /* 0 DNS_R_NOEROR */
"FORMERR", /* 1 */ "FORMERR", /* 1 DNS_R_FORMERR */
"SERVFAIL", /* 2 */ "SERVFAIL", /* 2 DNS_R_SERVFAIL */
"NXDOMAIN", /* 3 */ "NXDOMAIN", /* 3 DNS_R_NXDOMAIN */
"NOTIMP", /* 4 */ "NOTIMP", /* 4 DNS_R_NOTIMP */
"REFUSED", /* 5 */
"YXDOMAIN", /* 6 */ "REFUSED", /* 5 DNS_R_REFUSED */
"YXRRSET", /* 7 */ "YXDOMAIN", /* 6 DNS_R_YXDOMAIN */
"NXRRSET", /* 8 */ "YXRRSET", /* 7 DNS_R_YXRRSET */
"NOTAUTH", /* 9 */ "NXRRSET", /* 8 DNS_R_NXRRSET */
"NOTZONE", /* 10 */ "NOTAUTH", /* 9 DNS_R_NOTAUTH */
"<rcode 11>", /* 11 */
"<rcode 12>", /* 12 */ "NOTZONE", /* 10 DNS_R_NOTZONE */
"<rcode 13>", /* 13 */ "<rcode 11>", /* 11 has no macro */
"<rcode 14>", /* 14 */ "<rcode 12>", /* 12 has no macro */
"<rcode 15>", /* 15 */ "<rcode 13>", /* 13 has no macro */
"BADVERS", /* 16 */ "<rcode 14>", /* 14 has no macro */
"<rcode 15>", /* 15 has no macro */
"BADVERS", /* 16 DNS_R_BADVERS */
}; };
#define DNS_RESULT_RESULTSET 2 #define DNS_RESULT_RESULTSET 2