00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef DNS_RESULT_H
00021 #define DNS_RESULT_H 1
00022
00023
00024
00025 #include <isc/lang.h>
00026 #include <isc/resultclass.h>
00027
00028 #include <dns/types.h>
00029
00030
00031
00032
00033
00034
00035
00036 #include <isc/result.h>
00037
00038
00039
00040
00041 #define DNS_R_LABELTOOLONG (ISC_RESULTCLASS_DNS + 0)
00042 #define DNS_R_BADESCAPE (ISC_RESULTCLASS_DNS + 1)
00043
00044
00045
00046
00047
00048
00049
00050 #define DNS_R_EMPTYLABEL (ISC_RESULTCLASS_DNS + 4)
00051 #define DNS_R_BADDOTTEDQUAD (ISC_RESULTCLASS_DNS + 5)
00052 #define DNS_R_INVALIDNS (ISC_RESULTCLASS_DNS + 6)
00053 #define DNS_R_UNKNOWN (ISC_RESULTCLASS_DNS + 7)
00054 #define DNS_R_BADLABELTYPE (ISC_RESULTCLASS_DNS + 8)
00055 #define DNS_R_BADPOINTER (ISC_RESULTCLASS_DNS + 9)
00056 #define DNS_R_TOOMANYHOPS (ISC_RESULTCLASS_DNS + 10)
00057 #define DNS_R_DISALLOWED (ISC_RESULTCLASS_DNS + 11)
00058 #define DNS_R_EXTRATOKEN (ISC_RESULTCLASS_DNS + 12)
00059 #define DNS_R_EXTRADATA (ISC_RESULTCLASS_DNS + 13)
00060 #define DNS_R_TEXTTOOLONG (ISC_RESULTCLASS_DNS + 14)
00061 #define DNS_R_NOTZONETOP (ISC_RESULTCLASS_DNS + 15)
00062 #define DNS_R_SYNTAX (ISC_RESULTCLASS_DNS + 16)
00063 #define DNS_R_BADCKSUM (ISC_RESULTCLASS_DNS + 17)
00064 #define DNS_R_BADAAAA (ISC_RESULTCLASS_DNS + 18)
00065 #define DNS_R_NOOWNER (ISC_RESULTCLASS_DNS + 19)
00066 #define DNS_R_NOTTL (ISC_RESULTCLASS_DNS + 20)
00067 #define DNS_R_BADCLASS (ISC_RESULTCLASS_DNS + 21)
00068 #define DNS_R_NAMETOOLONG (ISC_RESULTCLASS_DNS + 22)
00069 #define DNS_R_PARTIALMATCH (ISC_RESULTCLASS_DNS + 23)
00070 #define DNS_R_NEWORIGIN (ISC_RESULTCLASS_DNS + 24)
00071 #define DNS_R_UNCHANGED (ISC_RESULTCLASS_DNS + 25)
00072 #define DNS_R_BADTTL (ISC_RESULTCLASS_DNS + 26)
00073 #define DNS_R_NOREDATA (ISC_RESULTCLASS_DNS + 27)
00074 #define DNS_R_CONTINUE (ISC_RESULTCLASS_DNS + 28)
00075 #define DNS_R_DELEGATION (ISC_RESULTCLASS_DNS + 29)
00076 #define DNS_R_GLUE (ISC_RESULTCLASS_DNS + 30)
00077 #define DNS_R_DNAME (ISC_RESULTCLASS_DNS + 31)
00078 #define DNS_R_CNAME (ISC_RESULTCLASS_DNS + 32)
00079 #define DNS_R_BADDB (ISC_RESULTCLASS_DNS + 33)
00080 #define DNS_R_ZONECUT (ISC_RESULTCLASS_DNS + 34)
00081 #define DNS_R_BADZONE (ISC_RESULTCLASS_DNS + 35)
00082 #define DNS_R_MOREDATA (ISC_RESULTCLASS_DNS + 36)
00083 #define DNS_R_UPTODATE (ISC_RESULTCLASS_DNS + 37)
00084 #define DNS_R_TSIGVERIFYFAILURE (ISC_RESULTCLASS_DNS + 38)
00085 #define DNS_R_TSIGERRORSET (ISC_RESULTCLASS_DNS + 39)
00086 #define DNS_R_SIGINVALID (ISC_RESULTCLASS_DNS + 40)
00087 #define DNS_R_SIGEXPIRED (ISC_RESULTCLASS_DNS + 41)
00088 #define DNS_R_SIGFUTURE (ISC_RESULTCLASS_DNS + 42)
00089 #define DNS_R_KEYUNAUTHORIZED (ISC_RESULTCLASS_DNS + 43)
00090 #define DNS_R_INVALIDTIME (ISC_RESULTCLASS_DNS + 44)
00091 #define DNS_R_EXPECTEDTSIG (ISC_RESULTCLASS_DNS + 45)
00092 #define DNS_R_UNEXPECTEDTSIG (ISC_RESULTCLASS_DNS + 46)
00093 #define DNS_R_INVALIDTKEY (ISC_RESULTCLASS_DNS + 47)
00094 #define DNS_R_HINT (ISC_RESULTCLASS_DNS + 48)
00095 #define DNS_R_DROP (ISC_RESULTCLASS_DNS + 49)
00096 #define DNS_R_NOTLOADED (ISC_RESULTCLASS_DNS + 50)
00097 #define DNS_R_NCACHENXDOMAIN (ISC_RESULTCLASS_DNS + 51)
00098 #define DNS_R_NCACHENXRRSET (ISC_RESULTCLASS_DNS + 52)
00099 #define DNS_R_WAIT (ISC_RESULTCLASS_DNS + 53)
00100 #define DNS_R_NOTVERIFIEDYET (ISC_RESULTCLASS_DNS + 54)
00101 #define DNS_R_NOIDENTITY (ISC_RESULTCLASS_DNS + 55)
00102 #define DNS_R_NOJOURNAL (ISC_RESULTCLASS_DNS + 56)
00103 #define DNS_R_ALIAS (ISC_RESULTCLASS_DNS + 57)
00104 #define DNS_R_USETCP (ISC_RESULTCLASS_DNS + 58)
00105 #define DNS_R_NOVALIDSIG (ISC_RESULTCLASS_DNS + 59)
00106 #define DNS_R_NOVALIDNSEC (ISC_RESULTCLASS_DNS + 60)
00107 #define DNS_R_NOTINSECURE (ISC_RESULTCLASS_DNS + 61)
00108 #define DNS_R_UNKNOWNSERVICE (ISC_RESULTCLASS_DNS + 62)
00109 #define DNS_R_RECOVERABLE (ISC_RESULTCLASS_DNS + 63)
00110 #define DNS_R_UNKNOWNOPT (ISC_RESULTCLASS_DNS + 64)
00111 #define DNS_R_UNEXPECTEDID (ISC_RESULTCLASS_DNS + 65)
00112 #define DNS_R_SEENINCLUDE (ISC_RESULTCLASS_DNS + 66)
00113 #define DNS_R_NOTEXACT (ISC_RESULTCLASS_DNS + 67)
00114 #define DNS_R_BLACKHOLED (ISC_RESULTCLASS_DNS + 68)
00115 #define DNS_R_BADALG (ISC_RESULTCLASS_DNS + 69)
00116 #define DNS_R_METATYPE (ISC_RESULTCLASS_DNS + 70)
00117 #define DNS_R_CNAMEANDOTHER (ISC_RESULTCLASS_DNS + 71)
00118 #define DNS_R_SINGLETON (ISC_RESULTCLASS_DNS + 72)
00119 #define DNS_R_HINTNXRRSET (ISC_RESULTCLASS_DNS + 73)
00120 #define DNS_R_NOMASTERFILE (ISC_RESULTCLASS_DNS + 74)
00121 #define DNS_R_UNKNOWNPROTO (ISC_RESULTCLASS_DNS + 75)
00122 #define DNS_R_CLOCKSKEW (ISC_RESULTCLASS_DNS + 76)
00123 #define DNS_R_BADIXFR (ISC_RESULTCLASS_DNS + 77)
00124 #define DNS_R_NOTAUTHORITATIVE (ISC_RESULTCLASS_DNS + 78)
00125 #define DNS_R_NOVALIDKEY (ISC_RESULTCLASS_DNS + 79)
00126 #define DNS_R_OBSOLETE (ISC_RESULTCLASS_DNS + 80)
00127 #define DNS_R_FROZEN (ISC_RESULTCLASS_DNS + 81)
00128 #define DNS_R_UNKNOWNFLAG (ISC_RESULTCLASS_DNS + 82)
00129 #define DNS_R_EXPECTEDRESPONSE (ISC_RESULTCLASS_DNS + 83)
00130 #define DNS_R_NOVALIDDS (ISC_RESULTCLASS_DNS + 84)
00131 #define DNS_R_NSISADDRESS (ISC_RESULTCLASS_DNS + 85)
00132 #define DNS_R_REMOTEFORMERR (ISC_RESULTCLASS_DNS + 86)
00133 #define DNS_R_TRUNCATEDTCP (ISC_RESULTCLASS_DNS + 87)
00134 #define DNS_R_LAME (ISC_RESULTCLASS_DNS + 88)
00135 #define DNS_R_UNEXPECTEDRCODE (ISC_RESULTCLASS_DNS + 89)
00136 #define DNS_R_UNEXPECTEDOPCODE (ISC_RESULTCLASS_DNS + 90)
00137 #define DNS_R_CHASEDSSERVERS (ISC_RESULTCLASS_DNS + 91)
00138 #define DNS_R_EMPTYNAME (ISC_RESULTCLASS_DNS + 92)
00139 #define DNS_R_EMPTYWILD (ISC_RESULTCLASS_DNS + 93)
00140 #define DNS_R_BADBITMAP (ISC_RESULTCLASS_DNS + 94)
00141 #define DNS_R_FROMWILDCARD (ISC_RESULTCLASS_DNS + 95)
00142 #define DNS_R_BADOWNERNAME (ISC_RESULTCLASS_DNS + 96)
00143 #define DNS_R_BADNAME (ISC_RESULTCLASS_DNS + 97)
00144 #define DNS_R_DYNAMIC (ISC_RESULTCLASS_DNS + 98)
00145 #define DNS_R_UNKNOWNCOMMAND (ISC_RESULTCLASS_DNS + 99)
00146 #define DNS_R_MUSTBESECURE (ISC_RESULTCLASS_DNS + 100)
00147 #define DNS_R_COVERINGNSEC (ISC_RESULTCLASS_DNS + 101)
00148 #define DNS_R_MXISADDRESS (ISC_RESULTCLASS_DNS + 102)
00149 #define DNS_R_DUPLICATE (ISC_RESULTCLASS_DNS + 103)
00150 #define DNS_R_INVALIDNSEC3 (ISC_RESULTCLASS_DNS + 104)
00151 #define DNS_R_NOTMASTER (ISC_RESULTCLASS_DNS + 105)
00152 #define DNS_R_BROKENCHAIN (ISC_RESULTCLASS_DNS + 106)
00153 #define DNS_R_EXPIRED (ISC_RESULTCLASS_DNS + 107)
00154 #define DNS_R_NOTDYNAMIC (ISC_RESULTCLASS_DNS + 108)
00155 #define DNS_R_BADEUI (ISC_RESULTCLASS_DNS + 109)
00156 #define DNS_R_NTACOVERED (ISC_RESULTCLASS_DNS + 110)
00157
00158 #define DNS_R_NRESULTS 111
00159
00160
00161
00162
00163
00164
00165
00166 #define DNS_R_NOERROR (ISC_RESULTCLASS_DNSRCODE + 0)
00167 #define DNS_R_FORMERR (ISC_RESULTCLASS_DNSRCODE + 1)
00168 #define DNS_R_SERVFAIL (ISC_RESULTCLASS_DNSRCODE + 2)
00169 #define DNS_R_NXDOMAIN (ISC_RESULTCLASS_DNSRCODE + 3)
00170 #define DNS_R_NOTIMP (ISC_RESULTCLASS_DNSRCODE + 4)
00171 #define DNS_R_REFUSED (ISC_RESULTCLASS_DNSRCODE + 5)
00172 #define DNS_R_YXDOMAIN (ISC_RESULTCLASS_DNSRCODE + 6)
00173 #define DNS_R_YXRRSET (ISC_RESULTCLASS_DNSRCODE + 7)
00174 #define DNS_R_NXRRSET (ISC_RESULTCLASS_DNSRCODE + 8)
00175 #define DNS_R_NOTAUTH (ISC_RESULTCLASS_DNSRCODE + 9)
00176 #define DNS_R_NOTZONE (ISC_RESULTCLASS_DNSRCODE + 10)
00177 #define DNS_R_BADVERS (ISC_RESULTCLASS_DNSRCODE + 16)
00178
00179 #define DNS_R_NRCODERESULTS 17
00180
00181 #define DNS_RESULT_ISRCODE(result) \
00182 (ISC_RESULTCLASS_INCLASS(ISC_RESULTCLASS_DNSRCODE, (result)))
00183
00184 ISC_LANG_BEGINDECLS
00185
00186 const char *
00187 dns_result_totext(isc_result_t);
00188
00189 void
00190 dns_result_register(void);
00191
00192 dns_rcode_t
00193 dns_result_torcode(isc_result_t result);
00194
00195 ISC_LANG_ENDDECLS
00196
00197 #endif