2 * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (c) 1998-2003 by Internet Software Consortium
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
15 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 * Internet Systems Consortium, Inc.
19 * Redwood City, CA 94063
25 #define ISC_RESULT_H 1
27 #include <isc-dhcp/boolean.h>
28 #include <isc-dhcp/lang.h>
29 #include <isc-dhcp/list.h>
30 #include <isc-dhcp/types.h>
39 ISC_R_ADDRNOTAVAIL
= 4,
44 ISC_R_HOSTUNREACH
= 9,
47 ISC_R_CONNREFUSED
= 12,
48 ISC_R_NORESOURCES
= 13,
56 ISC_R_TASKNOSEND
= 21,
57 ISC_R_SHUTTINGDOWN
= 22,
59 ISC_R_UNEXPECTEDEND
= 24,
62 ISC_R_NOTIMPLEMENTED
= 27,
63 ISC_R_UNBALANCED
= 28,
65 ISC_R_INVALIDFILE
= 30,
67 ISC_R_UNEXPECTEDTOKEN
= 32,
69 ISC_R_UNEXPECTED
= 34,
70 ISC_R_ALREADYRUNNING
= 35,
71 ISC_R_HOSTUNKNOWN
= 36,
72 ISC_R_VERSIONMISMATCH
= 37,
73 ISC_R_PROTOCOLERROR
= 38,
74 ISC_R_INVALIDARG
= 39,
75 ISC_R_NOTCONNECTED
= 40,
79 ISC_R_KEYCONFLICT
= 44,
82 ISC_R_KEY_UNKNOWN
= 47,
83 ISC_R_INVALIDKEY
= 48,
84 ISC_R_INCOMPLETE
= 49,
98 ISC_R_NOROOTZONE
= 63,
99 ISC_R_DESTADDRREQ
= 64,
100 ISC_R_CROSSZONE
= 65,
102 ISC_R_NOT_EQUAL
= 67,
103 ISC_R_CONNRESET
= 68,
104 ISC_R_UNKNOWNATTRIBUTE
= 69
108 #define ISC_R_NRESULTS 70 /* Number of results */
110 const char * isc_result_totext(isc_result_t
);
111 isc_result_t
isc_result_register(unsigned int base
,
112 unsigned int nresults
,
114 isc_msgcat_t
*msgcat
,
119 #endif /* ISC_RESULT_H */