]> git.ipfire.org Git - thirdparty/squid.git/blob - include/snmp_error.h
Cleanup: zap CVS Id tags
[thirdparty/squid.git] / include / snmp_error.h
1 /* -*- c++ -*- */
2 #ifndef SQUID_SNMP_ERROR_H
3 #define SQUID_SNMP_ERROR_H
4
5 /**********************************************************************
6 *
7 * Copyright 1997 by Carnegie Mellon University
8 *
9 * All Rights Reserved
10 *
11 * Permission to use, copy, modify, and distribute this software and its
12 * documentation for any purpose and without fee is hereby granted,
13 * provided that the above copyright notice appear in all copies and that
14 * both that copyright notice and this permission notice appear in
15 * supporting documentation, and that the name of CMU not be
16 * used in advertising or publicity pertaining to distribution of the
17 * software without specific, written prior permission.
18 *
19 * CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
20 * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
21 * CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
22 * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
23 * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
24 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
25 * SOFTWARE.
26 *
27 * $Id$
28 *
29 **********************************************************************/
30
31 /*
32 * RFC 1905: Protocol Operations for SNMPv2
33 *
34 * PDU : Error Status Values
35 */
36
37 #define SNMP_ERR_NOERROR (0x0)
38 #define SNMP_ERR_TOOBIG (0x1)
39 #define SNMP_ERR_NOSUCHNAME (0x2)
40 #define SNMP_ERR_BADVALUE (0x3)
41 #define SNMP_ERR_READONLY (0x4)
42 #define SNMP_ERR_GENERR (0x5)
43 #define SNMP_ERR_NOACCESS (0x6)
44 #define SNMP_ERR_WRONGTYPE (0x7)
45 #define SNMP_ERR_WRONGLENGTH (0x8)
46 #define SNMP_ERR_WRONGENCODING (0x9)
47 #define SNMP_ERR_WRONGVALUE (0x10)
48 #define SNMP_ERR_NOCREATION (0x11)
49 #define SNMP_ERR_INCONSISTENTVALUE (0x12)
50 #define SNMP_ERR_RESOURCEUNAVAILABLE (0x13)
51 #define SNMP_ERR_COMMITFAILED (0x14)
52 #define SNMP_ERR_UNDOFAILED (0x15)
53 #define SNMP_ERR_AUTHORIZATIONERROR (0x16)
54 #define SNMP_ERR_NOTWRITABLE (0x17)
55 #define SNMP_ERR_INCONSISTENTNAME (0x18)
56
57 #ifdef __cplusplus
58
59 extern "C"
60 {
61 #endif
62
63 const char *snmp_errstring(int);
64
65 #ifdef __cplusplus
66 }
67 #endif
68
69 #endif /* SQUID_SNMP_ERROR_H */