]> git.ipfire.org Git - thirdparty/squid.git/blob - include/snmp_impl.h
Merged from trunk (r13356).
[thirdparty/squid.git] / include / snmp_impl.h
1 #ifndef SQUID_SNMP_IMPL_H
2 #define SQUID_SNMP_IMPL_H
3
4 #include "asn1.h"
5
6 /*
7 * Definitions for SNMP (RFC 1067) implementation.
8 *
9 *
10 */
11 /***********************************************************
12 Copyright 1988, 1989 by Carnegie Mellon University
13
14 All Rights Reserved
15
16 Permission to use, copy, modify, and distribute this software and its
17 documentation for any purpose and without fee is hereby granted,
18 provided that the above copyright notice appear in all copies and that
19 both that copyright notice and this permission notice appear in
20 supporting documentation, and that the name of CMU not be
21 used in advertising or publicity pertaining to distribution of the
22 software without specific, written prior permission.
23
24 CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
25 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
26 CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
27 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
28 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
29 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
30 SOFTWARE.
31 ******************************************************************/
32
33 #if 0
34 #if (defined vax) || (defined (mips))
35 /*
36 * This is a fairly bogus thing to do, but there seems to be no better way for
37 * compilers that don't understand void pointers.
38 */
39 #ifndef void
40 #define void char
41 #endif
42 #endif
43 #endif
44
45 #define SID_MAX_LEN 64
46
47 #define READ 1
48 #define WRITE 0
49
50 #define SNMP_RESERVE1 0
51 #define SNMP_RESERVE2 1
52 #define SNMP_COMMIT 2
53 #define SNMP_FREE 3
54
55 #define RONLY 0xAAAA /* read access for everyone */
56 #define RWRITE 0xAABA /* add write access for community private */
57 #define NOACCESS 0x0000 /* no access for anybody */
58
59 struct trapVar {
60 oid *varName;
61 int varNameLen;
62 u_char varType;
63 int varLen;
64 u_char *varVal;
65 struct trapVar *next;
66 };
67
68 #endif /* SQUID_SNMP_IMPL_H */