1 |
27 |
unneback |
//==========================================================================
|
2 |
|
|
//
|
3 |
|
|
// ./agent/current/include/mibgroup/mibII/snmp_mib.h
|
4 |
|
|
//
|
5 |
|
|
//
|
6 |
|
|
//==========================================================================
|
7 |
|
|
//####ECOSGPLCOPYRIGHTBEGIN####
|
8 |
|
|
// -------------------------------------------
|
9 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
10 |
|
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
|
11 |
|
|
//
|
12 |
|
|
// eCos is free software; you can redistribute it and/or modify it under
|
13 |
|
|
// the terms of the GNU General Public License as published by the Free
|
14 |
|
|
// Software Foundation; either version 2 or (at your option) any later version.
|
15 |
|
|
//
|
16 |
|
|
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
|
17 |
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
18 |
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
19 |
|
|
// for more details.
|
20 |
|
|
//
|
21 |
|
|
// You should have received a copy of the GNU General Public License along
|
22 |
|
|
// with eCos; if not, write to the Free Software Foundation, Inc.,
|
23 |
|
|
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
24 |
|
|
//
|
25 |
|
|
// As a special exception, if other files instantiate templates or use macros
|
26 |
|
|
// or inline functions from this file, or you compile this file and link it
|
27 |
|
|
// with other works to produce a work based on this file, this file does not
|
28 |
|
|
// by itself cause the resulting work to be covered by the GNU General Public
|
29 |
|
|
// License. However the source code for this file must still be made available
|
30 |
|
|
// in accordance with section (3) of the GNU General Public License.
|
31 |
|
|
//
|
32 |
|
|
// This exception does not invalidate any other reasons why a work based on
|
33 |
|
|
// this file might be covered by the GNU General Public License.
|
34 |
|
|
//
|
35 |
|
|
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
36 |
|
|
// at http://sources.redhat.com/ecos/ecos-license/
|
37 |
|
|
// -------------------------------------------
|
38 |
|
|
//####ECOSGPLCOPYRIGHTEND####
|
39 |
|
|
//####UCDSNMPCOPYRIGHTBEGIN####
|
40 |
|
|
//
|
41 |
|
|
// -------------------------------------------
|
42 |
|
|
//
|
43 |
|
|
// Portions of this software may have been derived from the UCD-SNMP
|
44 |
|
|
// project, <http://ucd-snmp.ucdavis.edu/> from the University of
|
45 |
|
|
// California at Davis, which was originally based on the Carnegie Mellon
|
46 |
|
|
// University SNMP implementation. Portions of this software are therefore
|
47 |
|
|
// covered by the appropriate copyright disclaimers included herein.
|
48 |
|
|
//
|
49 |
|
|
// The release used was version 4.1.2 of May 2000. "ucd-snmp-4.1.2"
|
50 |
|
|
// -------------------------------------------
|
51 |
|
|
//
|
52 |
|
|
//####UCDSNMPCOPYRIGHTEND####
|
53 |
|
|
//==========================================================================
|
54 |
|
|
//#####DESCRIPTIONBEGIN####
|
55 |
|
|
//
|
56 |
|
|
// Author(s): hmt
|
57 |
|
|
// Contributors: hmt
|
58 |
|
|
// Date: 2000-05-30
|
59 |
|
|
// Purpose: Port of UCD-SNMP distribution to eCos.
|
60 |
|
|
// Description:
|
61 |
|
|
//
|
62 |
|
|
//
|
63 |
|
|
//####DESCRIPTIONEND####
|
64 |
|
|
//
|
65 |
|
|
//==========================================================================
|
66 |
|
|
/********************************************************************
|
67 |
|
|
Copyright 1989, 1991, 1992 by Carnegie Mellon University
|
68 |
|
|
|
69 |
|
|
Derivative Work -
|
70 |
|
|
Copyright 1996, 1998, 1999, 2000 The Regents of the University of California
|
71 |
|
|
|
72 |
|
|
All Rights Reserved
|
73 |
|
|
|
74 |
|
|
Permission to use, copy, modify and distribute this software and its
|
75 |
|
|
documentation for any purpose and without fee is hereby granted,
|
76 |
|
|
provided that the above copyright notice appears in all copies and
|
77 |
|
|
that both that copyright notice and this permission notice appear in
|
78 |
|
|
supporting documentation, and that the name of CMU and The Regents of
|
79 |
|
|
the University of California not be used in advertising or publicity
|
80 |
|
|
pertaining to distribution of the software without specific written
|
81 |
|
|
permission.
|
82 |
|
|
|
83 |
|
|
CMU AND THE REGENTS OF THE UNIVERSITY OF CALIFORNIA DISCLAIM ALL
|
84 |
|
|
WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
|
85 |
|
|
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL CMU OR
|
86 |
|
|
THE REGENTS OF THE UNIVERSITY OF CALIFORNIA BE LIABLE FOR ANY SPECIAL,
|
87 |
|
|
INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
|
88 |
|
|
FROM THE LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
|
89 |
|
|
CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
90 |
|
|
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
91 |
|
|
*********************************************************************/
|
92 |
|
|
/*
|
93 |
|
|
* SNMP MIB group interface - snmp.h
|
94 |
|
|
*
|
95 |
|
|
*/
|
96 |
|
|
#ifndef _MIBGROUP_SNMP_H
|
97 |
|
|
#define _MIBGROUP_SNMP_H
|
98 |
|
|
|
99 |
|
|
struct variable;
|
100 |
|
|
|
101 |
|
|
extern FindVarMethod var_snmp;
|
102 |
|
|
extern WriteMethod write_snmp;
|
103 |
|
|
|
104 |
|
|
void init_snmp_mib(void);
|
105 |
|
|
|
106 |
|
|
extern int snmp_inpkts; /* 1 - current */
|
107 |
|
|
extern int snmp_outpkts; /* 2 - obsolete */
|
108 |
|
|
extern int snmp_inbadversions; /* 3 - current */
|
109 |
|
|
extern int snmp_inbadcommunitynames; /* 4 - current */
|
110 |
|
|
extern int snmp_inbadcommunityuses; /* 5 - current */
|
111 |
|
|
extern int snmp_inasnparseerrors; /* 6 - current */
|
112 |
|
|
extern int snmp_intoobigs; /* 8 - obsolete */
|
113 |
|
|
extern int snmp_innosuchnames; /* 9 - obsolete */
|
114 |
|
|
extern int snmp_inbadvalues; /* 10 - obsolete */
|
115 |
|
|
extern int snmp_inreadonlys; /* 11 - obsolete */
|
116 |
|
|
extern int snmp_ingenerrs; /* 12 - obsolete */
|
117 |
|
|
extern int snmp_intotalreqvars; /* 13 - obsolete */
|
118 |
|
|
extern int snmp_intotalsetvars; /* 14 - obsolete */
|
119 |
|
|
extern int snmp_ingetrequests; /* 15 - obsolete */
|
120 |
|
|
extern int snmp_ingetnexts; /* 16 - obsolete */
|
121 |
|
|
extern int snmp_insetrequests; /* 17 - obsolete */
|
122 |
|
|
extern int snmp_ingetresponses; /* 18 - obsolete */
|
123 |
|
|
extern int snmp_intraps; /* 19 - obsolete */
|
124 |
|
|
extern int snmp_outtoobigs; /* 20 - obsolete */
|
125 |
|
|
extern int snmp_outnosuchnames; /* 21 - obsolete */
|
126 |
|
|
extern int snmp_outbadvalues; /* 22 - obsolete */
|
127 |
|
|
extern int snmp_outgenerrs; /* 24 - obsolete */
|
128 |
|
|
extern int snmp_outgetrequests; /* 25 - obsolete */
|
129 |
|
|
extern int snmp_outgetnexts; /* 26 - obsolete */
|
130 |
|
|
extern int snmp_outsetrequests; /* 27 - obsolete */
|
131 |
|
|
extern int snmp_outgetresponses; /* 28 - obsolete */
|
132 |
|
|
extern int snmp_outtraps; /* 29 - obsolete */
|
133 |
|
|
extern int snmp_enableauthentraps; /* 30 - current */
|
134 |
|
|
extern int snmp_silentdrops; /* 31 - current */
|
135 |
|
|
extern int snmp_proxydrops; /* 32 - current */
|
136 |
|
|
|
137 |
|
|
extern char *snmp_trapsink;
|
138 |
|
|
extern char *snmp_trapcommunity;
|
139 |
|
|
|
140 |
|
|
|
141 |
|
|
#define SNMPINPKTS 1
|
142 |
|
|
#define SNMPOUTPKTS 2
|
143 |
|
|
#define SNMPINBADVERSIONS 3
|
144 |
|
|
#define SNMPINBADCOMMUNITYNAMES 4
|
145 |
|
|
#define SNMPINBADCOMMUNITYUSES 5
|
146 |
|
|
#define SNMPINASNPARSEERRORS 6
|
147 |
|
|
#define SNMPINBADTYPES 7
|
148 |
|
|
#define SNMPINTOOBIGS 8
|
149 |
|
|
#define SNMPINNOSUCHNAMES 9
|
150 |
|
|
#define SNMPINBADVALUES 10
|
151 |
|
|
#define SNMPINREADONLYS 11
|
152 |
|
|
#define SNMPINGENERRS 12
|
153 |
|
|
#define SNMPINTOTALREQVARS 13
|
154 |
|
|
#define SNMPINTOTALSETVARS 14
|
155 |
|
|
#define SNMPINGETREQUESTS 15
|
156 |
|
|
#define SNMPINGETNEXTS 16
|
157 |
|
|
#define SNMPINSETREQUESTS 17
|
158 |
|
|
#define SNMPINGETRESPONSES 18
|
159 |
|
|
#define SNMPINTRAPS 19
|
160 |
|
|
#define SNMPOUTTOOBIGS 20
|
161 |
|
|
#define SNMPOUTNOSUCHNAMES 21
|
162 |
|
|
#define SNMPOUTBADVALUES 22
|
163 |
|
|
#define SNMPOUTREADONLYS 23
|
164 |
|
|
#define SNMPOUTGENERRS 24
|
165 |
|
|
#define SNMPOUTGETREQUESTS 25
|
166 |
|
|
#define SNMPOUTGETNEXTS 26
|
167 |
|
|
#define SNMPOUTSETREQUESTS 27
|
168 |
|
|
#define SNMPOUTGETRESPONSES 28
|
169 |
|
|
#define SNMPOUTTRAPS 29
|
170 |
|
|
#define SNMPENABLEAUTHENTRAPS 30
|
171 |
|
|
#define SNMPSILENTDROPS 31
|
172 |
|
|
#define SNMPPROXYDROPS 32
|
173 |
|
|
|
174 |
|
|
#endif /* _MIBGROUP_SNMP_H */
|