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