diff options
author | Gerald Carter <jerry@samba.org> | 2006-11-17 21:46:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:15:53 -0500 |
commit | c2aae726ea3f697c50f8d2304e2a9e69c56ab90f (patch) | |
tree | 0c05a34d585fa27282a3a106863c99e24237957f /source3/libaddns/dnserr.h | |
parent | 9a88644bb5834b526085fad7536a02e333bf8c3c (diff) | |
download | samba-c2aae726ea3f697c50f8d2304e2a9e69c56ab90f.tar.gz samba-c2aae726ea3f697c50f8d2304e2a9e69c56ab90f.tar.bz2 samba-c2aae726ea3f697c50f8d2304e2a9e69c56ab90f.zip |
r19762: libaddns/*[ch] code fixes donated by Centeris Corporation
(http://www.centeris.com/) under my copyright.
* Rework error reporting to use DNS_ERROR instead
of int32
* Convert memory allocation to use talloc()
* Generalize the DNS request/response packet marshalling
* Fix the secure update requests
(This used to be commit c78798333616c3f823514df0f58da2eb3a30a988)
Diffstat (limited to 'source3/libaddns/dnserr.h')
-rw-r--r-- | source3/libaddns/dnserr.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/source3/libaddns/dnserr.h b/source3/libaddns/dnserr.h index 013120b652..c46a9831cc 100644 --- a/source3/libaddns/dnserr.h +++ b/source3/libaddns/dnserr.h @@ -37,7 +37,7 @@ /* Setup the DNS_ERROR typedef. Technique takes from nt_status.h */ -#if defined(HAVE_IMMEDIATE_STRUCTURES_XX_DISABLED) +#if defined(HAVE_IMMEDIATE_STRUCTURES) typedef struct {uint32 v;} DNS_ERROR; #define ERROR_DNS(x) ((DNS_ERROR) { x }) #define ERROR_DNS_V(x) ((x).v) @@ -61,6 +61,16 @@ typedef uint32 DNS_ERROR; #define ERROR_DNS_NO_MEMORY ERROR_DNS(4) #define ERROR_DNS_INVALID_NAME_SERVER ERROR_DNS(5) #define ERROR_DNS_CONNECTION_FAILED ERROR_DNS(6) +#define ERROR_DNS_GSS_ERROR ERROR_DNS(7) +#define ERROR_DNS_INVALID_NAME ERROR_DNS(8) +#define ERROR_DNS_INVALID_MESSAGE ERROR_DNS(9) +#define ERROR_DNS_SOCKET_ERROR ERROR_DNS(10) +#define ERROR_DNS_UPDATE_FAILED ERROR_DNS(11) + +/* + * About to be removed, transitional error + */ +#define ERROR_DNS_UNSUCCESSFUL ERROR_DNS(999) #define ERROR_BAD_RESPONSE 1 @@ -70,5 +80,10 @@ typedef uint32 DNS_ERROR; #define ERROR_INVALID_PARAMETER 87 #endif +/* + * About to be removed, transitional error + */ +#define ERROR_UNSUCCESSFUL 999 + #endif /* _DNSERR_H */ |