]>
git.ipfire.org Git - thirdparty/dhcp.git/blob - omapip/result.c
5 * Copyright (c) 2004,2007,2009 by Internet Systems Consortium, Inc. ("ISC")
6 * Copyright (c) 1999-2003 by Internet Software Consortium
8 * Permission to use, copy, modify, and/or distribute this software for any
9 * purpose with or without fee is hereby granted, provided that the above
10 * copyright notice and this permission notice appear in all copies.
12 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
13 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
15 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
16 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
17 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18 * PERFORMANCE OF THIS SOFTWARE.
20 * Internet Systems Consortium, Inc.
22 * Redwood City, CA 94063
24 * https://www.isc.org/
31 * In the previous code the results started at 36
32 * rather than ISC_RESULTCLASS_DHCP + 0
33 * ISC_R_NOTCONNECTED was + 4 (40), it has been superseeded by the isc version
36 static const char *text
[DHCP_R_NRESULTS
] = {
37 "host unknown", /* 0 */
38 "protocol version mismatch", /* 1 */
39 "protocol error", /* 2 */
40 "invalid argument", /* 3 */
41 "data not yet available", /* 4 */
42 "object unchanged", /* 5 */
43 "more than one object matches key", /* 6 */
44 "key conflict", /* 7 */
45 "parse error(s) occurred", /* 8 */
46 "no key specified", /* 9 */
47 "zone TSIG key not known", /* 10 */
48 "invalid TSIG key", /* 11 */
49 "operation in progress", /* 12 */
50 "DNS format error", /* 13 */
51 "DNS server failed", /* 14 */
52 "no such domain", /* 15 */
53 "not implemented", /* 16 */
55 "domain already exists", /* 18 */
56 "RRset already exists", /* 19 */
57 "no such RRset", /* 20 */
58 "not authorized", /* 21 */
59 "not a zone", /* 22 */
60 "bad DNS signature", /* 23 */
61 "bad DNS key", /* 24 */
62 "clock skew too great", /* 25 */
63 "no root zone", /* 26 */
64 "destination address required", /* 27 */
65 "cross-zone update", /* 28 */
66 "no TSIG signature", /* 29 */
68 "connection reset by peer", /* 31 */
69 "unknown attribute" /* 32 */
72 #define DHCP_RESULT_RESULTSET 2
73 #define DHCP_RESULT_UNAVAILABLESET 3
75 // This is a placeholder as we don't allow for external message catalogs yet
76 isc_msgcat_t
* dhcp_msgcat
= NULL
;
79 dhcp_result_register(void) {
82 result
= isc_result_register(ISC_RESULTCLASS_DHCP
, DHCP_R_NRESULTS
,
83 text
, dhcp_msgcat
, DHCP_RESULT_RESULTSET
);