[API 0.399] Added defines for extended rcodes

And renamed GETDNS_RCODE_NOTIMPL in GETDNS_RCODE_NOTIMP to match
https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-6
This commit is contained in:
Willem Toorop 2014-02-19 11:03:48 +01:00
parent 5d34d31ecc
commit 4a8eef02e7
4 changed files with 21 additions and 13 deletions

Binary file not shown.

BIN
spec/getdns-0.399.tgz Normal file

Binary file not shown.

View File

@ -1,4 +1,4 @@
/* Created at 2014-02-18-15-23-20*/ /* Created at 2014-02-19-10-58-16*/
#ifndef GETDNS_H #ifndef GETDNS_H
#define GETDNS_H #define GETDNS_H
@ -293,17 +293,25 @@ typedef enum getdns_callback_type_t {
#define GETDNS_OPCODE_UPDATE 5 #define GETDNS_OPCODE_UPDATE 5
/* Defines for Rcodes (from 2014-02) */ /* Defines for Rcodes (from 2014-02) */
#define GETDNS_RCODE_NOERROR 0 #define GETDNS_RCODE_NOERROR 0
#define GETDNS_RCODE_FORMERR 1 #define GETDNS_RCODE_FORMERR 1
#define GETDNS_RCODE_SERVFAIL 2 #define GETDNS_RCODE_SERVFAIL 2
#define GETDNS_RCODE_NXDOMAIN 3 #define GETDNS_RCODE_NXDOMAIN 3
#define GETDNS_RCODE_NOTIMPL 4 #define GETDNS_RCODE_NOTIMP 4
#define GETDNS_RCODE_REFUSED 5 #define GETDNS_RCODE_REFUSED 5
#define GETDNS_RCODE_YXDOMAIN 6 #define GETDNS_RCODE_YXDOMAIN 6
#define GETDNS_RCODE_YXRRSET 7 #define GETDNS_RCODE_YXRRSET 7
#define GETDNS_RCODE_NXRRSET 8 #define GETDNS_RCODE_NXRRSET 8
#define GETDNS_RCODE_NOTAUTH 9 #define GETDNS_RCODE_NOTAUTH 9
#define GETDNS_RCODE_NOTZONE 10 #define GETDNS_RCODE_NOTZONE 10
#define GETDNS_RCODE_BADVERS 16
#define GETDNS_RCODE_BADSIG 16
#define GETDNS_RCODE_BADKEY 17
#define GETDNS_RCODE_BADTIME 18
#define GETDNS_RCODE_BADMODE 19
#define GETDNS_RCODE_BADNAME 20
#define GETDNS_RCODE_BADALG 21
#define GETDNS_RCODE_BADTRUNC 22
/* Various typedefs */ /* Various typedefs */
struct getdns_context; struct getdns_context;

View File

@ -2428,7 +2428,7 @@ The response dicts inherit the custom memory management functions and the value
<h1>9. The Generated Files</h1> <h1>9. The Generated Files</h1>
<p>There is <a href="getdns-0.398.tgz">a tarball</a> that includes the .h files, <p>There is <a href="getdns-0.399.tgz">a tarball</a> that includes the .h files,
the examples, and so on. The examples all make, even though there is no API implementation, based the examples, and so on. The examples all make, even though there is no API implementation, based
on a pseudo-implementation in the tarball; see make-examples-PLATFORM.sh. Note that this currently builds fine on a pseudo-implementation in the tarball; see make-examples-PLATFORM.sh. Note that this currently builds fine
on the Macintosh and Ubuntu; help is definitely appreciated on making the build process on the Macintosh and Ubuntu; help is definitely appreciated on making the build process