omapip/result.c

Go to the documentation of this file.
00001 /* result.c
00002  */
00003 
00004 /* 
00005  * Copyright (c) 2004,2007,2009 by Internet Systems Consortium, Inc. ("ISC")
00006  * Copyright (c) 1999-2003 by Internet Software Consortium
00007  *
00008  * Permission to use, copy, modify, and/or distribute this software for any
00009  * purpose with or without fee is hereby granted, provided that the above
00010  * copyright notice and this permission notice appear in all copies.
00011  *
00012  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
00013  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00014  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
00015  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00016  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00017  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00018  * PERFORMANCE OF THIS SOFTWARE.
00019  *
00020  *   Internet Systems Consortium, Inc.
00021  *   950 Charter Street
00022  *   Redwood City, CA 94063
00023  *   <info@isc.org>
00024  *   https://www.isc.org/
00025  *
00026  */
00027 
00028 #include "dhcpd.h"
00029 
00030 /*
00031  * In the previous code the results started at 36
00032  * rather than ISC_RESULTCLASS_DHCP + 0
00033  * ISC_R_NOTCONNECTED was + 4 (40), it has been superseeded by the isc version
00034  */
00035 
00036 static const char *text[DHCP_R_NRESULTS] = {
00037         "host unknown",                         /* 0 */
00038         "protocol version mismatch",            /* 1 */
00039         "protocol error",                       /* 2 */
00040         "invalid argument",                     /* 3 */
00041         "data not yet available",               /* 4 */
00042         "object unchanged",                     /* 5 */
00043         "more than one object matches key",     /* 6 */
00044         "key conflict",                         /* 7 */
00045         "parse error(s) occurred",              /* 8 */
00046         "no key specified",                     /* 9 */
00047         "zone TSIG key not known",              /* 10 */
00048         "invalid TSIG key",                     /* 11 */
00049         "operation in progress",                /* 12 */
00050         "DNS format error",                     /* 13 */
00051         "DNS server failed",                    /* 14 */
00052         "no such domain",                       /* 15 */
00053         "not implemented",                      /* 16 */
00054         "refused",                              /* 17 */
00055         "domain already exists",                /* 18 */
00056         "RRset already exists",                 /* 19 */
00057         "no such RRset",                        /* 20 */
00058         "not authorized",                       /* 21 */
00059         "not a zone",                           /* 22 */
00060         "bad DNS signature",                    /* 23 */
00061         "bad DNS key",                          /* 24 */
00062         "clock skew too great",                 /* 25 */
00063         "no root zone",                         /* 26 */
00064         "destination address required",         /* 27 */
00065         "cross-zone update",                    /* 28 */
00066         "no TSIG signature",                    /* 29 */
00067         "not equal",                            /* 30 */
00068         "connection reset by peer",             /* 31 */
00069         "unknown attribute"                     /* 32 */
00070 };
00071 
00072 #define DHCP_RESULT_RESULTSET           2
00073 #define DHCP_RESULT_UNAVAILABLESET      3
00074 
00075 // This is a placeholder as we don't allow for external message catalogs yet
00076 isc_msgcat_t * dhcp_msgcat = NULL;
00077 
00078 isc_result_t
00079 dhcp_result_register(void) {
00080         isc_result_t result;
00081 
00082         result = isc_result_register(ISC_RESULTCLASS_DHCP, DHCP_R_NRESULTS,
00083                                      text, dhcp_msgcat, DHCP_RESULT_RESULTSET);
00084 
00085         return(result);
00086 }

Generated on 5 Apr 2014 for ISC DHCP by  doxygen 1.6.1