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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [net/] [snmp/] [agent/] [current/] [cdl/] [snmpagent.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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