OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [net/] [snmp/] [agent/] [v2_0/] [cdl/] [snmpagent.cdl] - Blame information for rev 773

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
# ====================================================================
2
#
3
#      snmpagent.cdl
4
#
5
#      SNMP agent configuration data
6
#
7
# ====================================================================
8
#####ECOSGPLCOPYRIGHTBEGIN####
9
## -------------------------------------------
10
## This file is part of eCos, the Embedded Configurable Operating System.
11
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
12
##
13
## eCos is free software; you can redistribute it and/or modify it under
14
## the terms of the GNU General Public License as published by the Free
15
## Software Foundation; either version 2 or (at your option) any later version.
16
##
17
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
18
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
19
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
20
## for more details.
21
##
22
## You should have received a copy of the GNU General Public License along
23
## with eCos; if not, write to the Free Software Foundation, Inc.,
24
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
25
##
26
## As a special exception, if other files instantiate templates or use macros
27
## or inline functions from this file, or you compile this file and link it
28
## with other works to produce a work based on this file, this file does not
29
## by itself cause the resulting work to be covered by the GNU General Public
30
## License. However the source code for this file must still be made available
31
## in accordance with section (3) of the GNU General Public License.
32
##
33
## This exception does not invalidate any other reasons why a work based on
34
## this file might be covered by the GNU General Public License.
35
##
36
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
37
## at http://sources.redhat.com/ecos/ecos-license/
38
## -------------------------------------------
39
#####ECOSGPLCOPYRIGHTEND####
40
# ====================================================================
41
######DESCRIPTIONBEGIN####
42
#
43
# Author(s):      hmt
44
# Original data:  hmt, Andrew Lunn
45
# Contributors:   gthomas
46
# Date:           2000-05-30
47
#
48
#####DESCRIPTIONEND####
49
#
50
# ====================================================================
51
 
52
cdl_package CYGPKG_SNMPAGENT {
53
    display       "SNMP agent"
54
    parent        CYGPKG_NET
55
    doc           ref/net-snmp-ecos-port.html
56
    include_dir   ucd-snmp
57
    requires      CYGPKG_IO
58
    requires      { 0 != CYGINT_ISO_STRING_STRFUNCS }
59
    requires      { 0 != CYGINT_ISO_STDLIB_STRCONV }
60
    requires      { 0 != CYGINT_ISO_STDIO_FORMATTED_IO }
61
    requires      { 0 != CYGINT_ISO_STRING_STRFUNCS }
62
    requires      { 0 != CYGINT_ISO_MALLOC }
63
    requires      { 0 != CYGINT_ISO_ERRNO }
64
    requires      { 0 != CYGINT_ISO_ERRNO_CODES }
65
    requires      CYGPKG_NET
66
    requires      CYGPKG_SNMPLIB
67
    description   "SNMP agent based on the UCD-SNMP project."
68
 
69
    compile                                     \
70
                agent_read_config.c             \
71
                agent_registry.c                \
72
                agent_trap.c                    \
73
                kernel.c                        \
74
                mib_modules.c                   \
75
                snmp_agent.c                    \
76
                snmp_vars.c                     \
77
                snmpd.c                         \
78
                snmptask.c                      \
79
                mibgroup/mibII/helpers.c        \
80
                mibgroup/mibII/system_mib.c     \
81
                mibgroup/mibII/sysORTable.c     \
82
                mibgroup/mibII/snmp_mib.c       \
83
                mibgroup/mibII/icmp.c           \
84
                mibgroup/mibII/interfaces.c     \
85
                mibgroup/mibII/ip.c             \
86
                mibgroup/mibII/tcp.c            \
87
                mibgroup/mibII/udp.c            \
88
                mibgroup/util_funcs.c           \
89
                mibgroup/mibII/dot3.c           \
90
                mibgroup/snmpv3/usmStats.c      \
91
                mibgroup/snmpv3/usmUser.c       \
92
                mibgroup/snmpv3/snmpEngine.c    \
93
                mibgroup/mibII/vacm_vars.c      \
94
 
95
 
96
 
97
# Turns out the agent does not need to read the MIBs at all.
98
# It is all part of the library startup; I had been misled by
99
# debug/error messages.  But that part of the lib is not used.
100
#
101
#                rofs/EtherLike-MIB.c           \
102
#                rofs/IANAifType-MIB.c          \
103
#                rofs/IF-MIB.c                  \
104
#                rofs/IP-MIB.c                  \
105
#                rofs/RFC-1215.c                        \
106
#                rofs/SNMPv2-CONF.c             \
107
#                rofs/SNMPv2-MIB.c              \
108
#                rofs/SNMPv2-SMI.c              \
109
#                rofs/SNMPv2-TC.c               \
110
#                rofs/SNMPv2-TM.c               \
111
#                rofs/TCP-MIB.c                 \
112
#                rofs/UDP-MIB.c
113
 
114
#    compile    -library=libextras.a  rofs/snmprofs.c
115
 
116
#                mibgroup/mibII/interfaces.c    \
117
#                mibgroup/mibII/icmp.c          \
118
#                mibgroup/mibII/ip.c            \
119
#                mibgroup/mibII/snmp_mib.c      \
120
#                mibgroup/mibII/sysORTable.c    \
121
#                mibgroup/mibII/system_mib.c    \
122
#                mibgroup/mibII/tcp.c           \
123
#                mibgroup/mibII/udp.c           \
124
#                mibgroup/util_funcs.c          \
125
#
126
 
127
# these from MIBII that I think I might need later
128
#               mibgroup/mibII/ipv6.c           \
129
#               mibgroup/mibII/route_write.c    \
130
#               mibgroup/mibII/var_route.c      \
131
# AT group is deprecated
132
#               mibgroup/mibII/at.c             \
133
# SNMPv3 view access control
134
#               mibgroup/mibII/vacm_vars.c      \
135
 
136
 
137
# here is the full list
138
#    compile \
139
#                dlmods/dlmod_mib.c                     \
140
#                dlmods/example.c                       \
141
#                mibgroup/agentx/client.c               \
142
#                mibgroup/agentx/master.c               \
143
#                mibgroup/agentx/master_admin.c         \
144
#                mibgroup/agentx/master_request.c       \
145
#                mibgroup/agentx/protocol.c             \
146
#                mibgroup/agentx/subagent.c             \
147
#                mibgroup/examples/example.c            \
148
#                mibgroup/examples/ucdDemoPublic.c      \
149
#                mibgroup/examples/ucdDemoPublic.cmds   \
150
#                mibgroup/examples/ucdDemoPublic.conf   \
151
#                mibgroup/host/hr_device.c              \
152
#                mibgroup/host/hr_disk.c                        \
153
#                mibgroup/host/hr_filesys.c             \
154
#                mibgroup/host/hr_network.c             \
155
#                mibgroup/host/hr_other.c               \
156
#                mibgroup/host/hr_partition.c           \
157
#                mibgroup/host/hr_print.c               \
158
#                mibgroup/host/hr_proc.c                        \
159
#                mibgroup/host/hr_storage.c             \
160
#                mibgroup/host/hr_swinst.c              \
161
#                mibgroup/host/hr_swrun.c               \
162
#                mibgroup/host/hr_system.c              \
163
#                mibgroup/host/hr_utils.c               \
164
#                mibgroup/mibII/interfaces.c            \
165
#                mibgroup/mibII/at.c                    \
166
#                mibgroup/mibII/icmp.c                  \
167
#                mibgroup/mibII/ip.c                    \
168
#                mibgroup/mibII/ipv6.c                  \
169
#                mibgroup/mibII/route_write.c           \
170
#                mibgroup/mibII/snmp_mib.c              \
171
#                mibgroup/mibII/sysORTable.c            \
172
#                mibgroup/mibII/system_mib.c            \
173
#                mibgroup/mibII/tcp.c                   \
174
#                mibgroup/mibII/udp.c                   \
175
#                mibgroup/mibII/vacm_vars.c             \
176
#                mibgroup/mibII/var_route.c             \
177
#                mibgroup/misc/ipfwacc.c                        \
178
#                mibgroup/misc/dlmod.c                  \
179
#                mibgroup/smux/snmp_bgp.c               \
180
#                mibgroup/smux/smux.c                   \
181
#                mibgroup/smux/snmp_ospf.c              \
182
#                mibgroup/smux/snmp_rip2.c              \
183
#                mibgroup/snmpv3/snmpMPDStats.c         \
184
#                mibgroup/target/snmpTargetAddrEntry.c  \
185
#                mibgroup/target/snmpTargetParamsEntry.c        \
186
#                mibgroup/ucd-snmp/diskio.c             \
187
#                mibgroup/ucd-snmp/disk.c               \
188
#                mibgroup/ucd-snmp/errormib.c           \
189
#                mibgroup/ucd-snmp/extensible.c         \
190
#                mibgroup/ucd-snmp/file.c               \
191
#                mibgroup/ucd-snmp/hpux.c               \
192
#                mibgroup/ucd-snmp/loadave.c            \
193
#                mibgroup/ucd-snmp/memory.c             \
194
#                mibgroup/ucd-snmp/memory_freebsd2.c    \
195
#                mibgroup/ucd-snmp/memory_netbsd1.c     \
196
#                mibgroup/ucd-snmp/memory_solaris2.c    \
197
#                mibgroup/ucd-snmp/pass.c               \
198
#                mibgroup/ucd-snmp/pass_persist.c       \
199
#                mibgroup/ucd-snmp/proc.c               \
200
#                mibgroup/ucd-snmp/registry.c           \
201
#                mibgroup/ucd-snmp/versioninfo.c                \
202
#                mibgroup/ucd-snmp/vmstat.c             \
203
#                mibgroup/ucd-snmp/vmstat_freebsd2.c    \
204
#                mibgroup/ucd-snmp/vmstat_netbsd1.c     \
205
#                mibgroup/ucd-snmp/vmstat_solaris2.c    \
206
#                mibgroup/header_complex.c              \
207
#                mibgroup/kernel_sunos5.c               \
208
#                mibgroup/util_funcs.c                  \
209
 
210
 
211
    cdl_component CYGPKG_SNMPAGENT_SYSTEM_MIB {
212
        display "System MIB defaults"
213
        flavor  none
214
        no_define
215
        description "
216
            These options control the default values for items in the
217
            system MIB.  The symbols are used as initializers for C char
218
            arrays; therefore you must include \"double-quotes\" in the
219
            defined value to get the correct results."
220
 
221
        cdl_option CYGDAT_NET_SNMPAGENT_SYS_CONTACT {
222
            display "Contact address"
223
            flavor  data
224
            default_value { "\"nobody@nowhere.net\"" }
225
            description   "
226
                This specifies the value returned for the sysContact field
227
                of the System MIB (via the symbol SYS_CONTACT in the UCD
228
                sources)."
229
        }
230
 
231
        cdl_option CYGDAT_NET_SNMPAGENT_SYS_LOC {
232
            display "System location"
233
            flavor  data
234
            default_value { "\"\"" }
235
            description   "
236
                This specifies the value returned for the sysLocation field
237
                of the System MIB (via the symbol SYS_LOC in the UCD
238
                sources)"
239
        }
240
 
241
        cdl_option CYGDAT_NET_SNMPAGENT_VERS_DESC {
242
            display "Version description"
243
            flavor  data
244
            default_value { "\"ucd-snmp-4.1.2/Red Hat eCos\"" }
245
            description   "
246
                This specifies the value returned for the sysDescr field
247
                of the System MIB (via the symbol VERS_DESC in the UCD
248
                sources)"
249
        }
250
 
251
        cdl_option CYGDAT_NET_SNMPAGENT_SYS_NAME {
252
            display "System name "
253
            flavor  data
254
            default_value { "\"eCos\"" }
255
            description   "
256
                This specifies the value returned for the sysName field
257
                of the System MIB (via the symbol SYS_NAME in the UCD
258
                sources)"
259
        }
260
    }
261
 
262
    cdl_component CYGPKG_SNMPAGENT_OPTIONS {
263
        display "SNMP agent build options"
264
        flavor  none
265
        no_define
266
 
267
        cdl_option CYGPKG_SNMPAGENT_CFLAGS_ADD {
268
            display "Additional compiler flags"
269
            flavor  data
270
            no_define
271
            default_value { "-D_KERNEL -D__ECOS -DIN_UCD_SNMP_SOURCE=1 -I$(PREFIX)/include/ucd-snmp" }
272
            description   "
273
                This option modifies the set of compiler flags for
274
                building the SNMP agent package.
275
                These flags are used in addition
276
                to the set of global flags."
277
        }
278
 
279
        cdl_option CYGPKG_SNMPAGENT_CFLAGS_REMOVE {
280
            display "Suppressed compiler flags"
281
            flavor  data
282
            no_define
283
            default_value { "" }
284
            description   "
285
                This option modifies the set of compiler flags for
286
                building the SNMP agent package. These flags are removed from
287
                the set of global flags if present."
288
        }
289
 
290
        cdl_option CYGPKG_SNMPAGENT_V3_SUPPORT {
291
            display "SNMPv3 support package"
292
            flavor  bool
293
            default_value 1
294
            description   "
295
                Enabling this option includes SNMPv3 functionality as per
296
                the implementation in UCD-SNMP-4.1.2"
297
        }
298
 
299
        cdl_component CYGPKG_SNMPAGENT_TESTS {
300
            display "SNMP agent tests"
301
            flavor  data
302
            no_define
303
            calculated {
304
                "tests/snmpping"
305
            }
306
            description   "
307
                This option specifies the set of tests for the eCos SMNP agent."
308
 
309
            cdl_option CYGSEM_SNMPAGENT_TESTS_PROMISCUOUS {
310
                display "Run SNMP agent tests in promiscuous mode"
311
                flavor  bool
312
                default_value 0
313
                description   "
314
                    This option controls the tests for the eCos SMNP agent.
315
                    Enabling it will enable promiscuous mode on the hardware
316
                    interface."
317
            }
318
 
319
            cdl_option CYGSEM_SNMPAGENT_TESTS_SNMPv3 {
320
                display "SNMP agent test for SNMP version 3"
321
                flavor  bool
322
                active_if CYGPKG_SNMPAGENT_V3_SUPPORT
323
                default_value 1
324
                description   "
325
                    This option controls the tests for the eCos SMNP agent.
326
                    Enabling it will include setup and testing of SNMP v3 interfaces."
327
            }
328
 
329
            cdl_option CYGNUM_SNMPAGENT_TESTS_ITERATIONS {
330
                display "Number of test iterations for SNMP agent test"
331
                flavor  data
332
                default_value 1
333
                description   "
334
                    This option controls the number of times the basic test will
335
                    be run for testing the eCos SMNP agent."
336
            }
337
        }
338
    }
339
}
340
 
341
# EOF snmpagent.cdl

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.