etc/protocols - sync with NetBSD-8
[minix.git] / external / bsd / dhcp / dist / includes / omapip / result.h
blobbe31c8271faaf26dc239f4edb6278eb676204d2c
1 /* $NetBSD: result.h,v 1.2 2014/12/10 07:43:34 uebayasi Exp $ */
2 /* result.h
3 */
5 /*
6 * Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
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.
21 * 950 Charter Street
22 * Redwood City, CA 94063
23 * <info@isc.org>
24 * https://www.isc.org/
27 #ifndef DHCP_RESULT_H
28 #define DHCP_RESULT_H 1
30 #include <isc/lang.h>
31 #include <isc/resultclass.h>
32 #include <isc/types.h>
34 #include <isc/result.h>
37 * DHCP result codes
41 * In the previous code the results started at 36
42 * rather than ISC_RESULTCLASS_DHCP + 0
43 * ISC_R_NOTCONNECTED was + 4 (40), it has been superseded by the isc version
46 #define DHCP_R_HOSTUNKNOWN (ISC_RESULTCLASS_DHCP + 0)
47 #define DHCP_R_VERSIONMISMATCH (ISC_RESULTCLASS_DHCP + 1)
48 #define DHCP_R_PROTOCOLERROR (ISC_RESULTCLASS_DHCP + 2)
49 #define DHCP_R_INVALIDARG (ISC_RESULTCLASS_DHCP + 3)
50 #define DHCP_R_NOTYET (ISC_RESULTCLASS_DHCP + 4)
51 #define DHCP_R_UNCHANGED (ISC_RESULTCLASS_DHCP + 5)
52 #define DHCP_R_MULTIPLE (ISC_RESULTCLASS_DHCP + 6)
53 #define DHCP_R_KEYCONFLICT (ISC_RESULTCLASS_DHCP + 7)
54 #define DHCP_R_BADPARSE (ISC_RESULTCLASS_DHCP + 8)
55 #define DHCP_R_NOKEYS (ISC_RESULTCLASS_DHCP + 9)
56 #define DHCP_R_KEY_UNKNOWN (ISC_RESULTCLASS_DHCP + 10)
57 #define DHCP_R_INVALIDKEY (ISC_RESULTCLASS_DHCP + 11)
58 #define DHCP_R_INCOMPLETE (ISC_RESULTCLASS_DHCP + 12)
59 #define DHCP_R_FORMERR (ISC_RESULTCLASS_DHCP + 13)
60 #define DHCP_R_SERVFAIL (ISC_RESULTCLASS_DHCP + 14)
61 #define DHCP_R_NXDOMAIN (ISC_RESULTCLASS_DHCP + 15)
62 #define DHCP_R_NOTIMPL (ISC_RESULTCLASS_DHCP + 16)
63 #define DHCP_R_REFUSED (ISC_RESULTCLASS_DHCP + 17)
64 #define DHCP_R_YXDOMAIN (ISC_RESULTCLASS_DHCP + 18)
65 #define DHCP_R_YXRRSET (ISC_RESULTCLASS_DHCP + 19)
66 #define DHCP_R_NXRRSET (ISC_RESULTCLASS_DHCP + 20)
67 #define DHCP_R_NOTAUTH (ISC_RESULTCLASS_DHCP + 21)
68 #define DHCP_R_NOTZONE (ISC_RESULTCLASS_DHCP + 22)
69 #define DHCP_R_BADSIG (ISC_RESULTCLASS_DHCP + 23)
70 #define DHCP_R_BADKEY (ISC_RESULTCLASS_DHCP + 24)
71 #define DHCP_R_BADTIME (ISC_RESULTCLASS_DHCP + 25)
72 #define DHCP_R_NOROOTZONE (ISC_RESULTCLASS_DHCP + 26)
73 #define DHCP_R_DESTADDRREQ (ISC_RESULTCLASS_DHCP + 27)
74 #define DHCP_R_CROSSZONE (ISC_RESULTCLASS_DHCP + 28)
75 #define DHCP_R_NO_TSIG (ISC_RESULTCLASS_DHCP + 29)
76 #define DHCP_R_NOT_EQUAL (ISC_RESULTCLASS_DHCP + 30)
77 #define DHCP_R_CONNRESET (ISC_RESULTCLASS_DHCP + 31)
78 #define DHCP_R_UNKNOWNATTRIBUTE (ISC_RESULTCLASS_DHCP + 32)
80 #define DHCP_R_NRESULTS 33 /*%< Number of results */
82 // Included for historical reasons, these should be removed as
83 // soon as reasonable
84 #if 0
85 #define ISC_R_HOSTUNKNOWN DHCP_R_HOSTUNKNOWN
86 #define ISC_R_VERSIONMISMATCH DHCP_R_VERSIONMISMATCH
87 #define ISC_R_PROTOCOLERROR DHCP_R_PROTOCOLERROR
88 #define ISC_R_INVALIDARG DHCP_R_INVALIDARG
89 #define ISC_R_NOTYET DHCP_R_NOTYET
90 #define ISC_R_UNCHANGED DHCP_R_UNCHANGED
91 #define ISC_R_MULTIPLE DHCP_R_MULTIPLE
92 #define ISC_R_KEYCONFLICT DHCP_R_KEYCONFLICT
93 #define ISC_R_BADPARSE DHCP_R_BADPARSE
94 #define ISC_R_NOKEYS DHCP_R_NOKEYS
95 #define ISC_R_KEY_UNKNOWN DHCP_R_KEY_UNKNOWN
96 #define ISC_R_INVALIDKEY DHCP_R_INVALIDKEY
97 #define ISC_R_INCOMPLETE DHCP_R_INCOMPLETE
98 #define ISC_R_FORMERR DHCP_R_FORMERR
99 #define ISC_R_SERVFAIL DHCP_R_SERVFAIL
100 #define ISC_R_NXDOMAIN DHCP_R_NXDOMAIN
101 #define ISC_R_NOTIMPL DHCP_R_NOTIMPL
102 #define ISC_R_REFUSED DHCP_R_REFUSED
103 #define ISC_R_YXDOMAIN DHCP_R_YXDOMAIN
104 #define ISC_R_YXRRSET DHCP_R_YXRRSET
105 #define ISC_R_NXRRSET DHCP_R_NXRRSET
106 #define ISC_R_NOTAUTH DHCP_R_NOTAUTH
107 #define ISC_R_NOTZONE DHCP_R_NOTZONE
108 #define ISC_R_BADSIG DHCP_R_BADSIG
109 #define ISC_R_BADKEY DHCP_R_BADKEY
110 #define ISC_R_BADTIME DHCP_R_BADTIME
111 #define ISC_R_NOROOTZONE DHCP_R_NOROOTZONE
112 #define ISC_R_DESTADDRREQ DHCP_R_DESTADDRREQ
113 #define ISC_R_CROSSZONE DHCP_R_CROSSZONE
114 #define ISC_R_NO_TSIG DHCP_R_NO_TSIG
115 #define ISC_R_NOT_EQUAL DHCP_R_NOT_EQUAL
116 #define ISC_R_CONNRESET DHCP_R_CONNRESET
117 #define ISC_R_UNKNOWNATTRIBUTE DHCP_R_UNKNOWNATTRIBUTE
118 #endif
120 isc_result_t
121 dhcp_result_register(void);
123 #endif /* DHCP_RESULT_H */