STM32F769IDiscovery
1.00
uDANTE Audio Networking with STM32F7 DISCO board
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
Eclipse_WS2
STM32F769IDiscovery
Middlewares
Third_Party
LwIP
src
include
lwip
apps
snmp_opts.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015 Dirk Ziegelmeier
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without modification,
6
* are permitted provided that the following conditions are met:
7
*
8
* 1. Redistributions of source code must retain the above copyright notice,
9
* this list of conditions and the following disclaimer.
10
* 2. Redistributions in binary form must reproduce the above copyright notice,
11
* this list of conditions and the following disclaimer in the documentation
12
* and/or other materials provided with the distribution.
13
* 3. The name of the author may not be used to endorse or promote products
14
* derived from this software without specific prior written permission.
15
*
16
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
17
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
19
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
21
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
25
* OF SUCH DAMAGE.
26
*
27
* This file is part of the lwIP TCP/IP stack.
28
*
29
* Author: Dirk Ziegelmeier
30
*
31
*/
32
#ifndef LWIP_HDR_SNMP_OPTS_H
33
#define LWIP_HDR_SNMP_OPTS_H
34
35
#include "
lwip/opt.h
"
36
45
#ifndef LWIP_SNMP
46
#define LWIP_SNMP 0
47
#endif
48
54
#ifndef SNMP_USE_NETCONN
55
#define SNMP_USE_NETCONN 0
56
#endif
57
63
#ifndef SNMP_USE_RAW
64
#define SNMP_USE_RAW 1
65
#endif
66
67
#if SNMP_USE_NETCONN && SNMP_USE_RAW
68
#error SNMP stack can use only one of the APIs {raw, netconn}
69
#endif
70
71
#if LWIP_SNMP && !SNMP_USE_NETCONN && !SNMP_USE_RAW
72
#error SNMP stack needs a receive API and UDP {raw, netconn}
73
#endif
74
75
#if SNMP_USE_NETCONN
76
79
#ifndef SNMP_STACK_SIZE
80
#define SNMP_STACK_SIZE DEFAULT_THREAD_STACKSIZE
81
#endif
82
86
#ifndef SNMP_THREAD_PRIO
87
#define SNMP_THREAD_PRIO DEFAULT_THREAD_PRIO
88
#endif
89
#endif
/* SNMP_USE_NETCONN */
90
95
#ifndef SNMP_TRAP_DESTINATIONS
96
#define SNMP_TRAP_DESTINATIONS 1
97
#endif
98
104
#ifndef SNMP_SAFE_REQUESTS
105
#define SNMP_SAFE_REQUESTS 1
106
#endif
107
111
#ifndef SNMP_MAX_OCTET_STRING_LEN
112
#define SNMP_MAX_OCTET_STRING_LEN 127
113
#endif
114
119
#ifndef SNMP_MAX_OBJ_ID_LEN
120
#define SNMP_MAX_OBJ_ID_LEN 50
121
#endif
122
126
#ifndef SNMP_MAX_VALUE_SIZE
127
#define SNMP_MIN_VALUE_SIZE (2 * sizeof(u32_t*))
/* size required to store the basic types (8 bytes for counter64) */
128
#define SNMP_MAX_VALUE_SIZE LWIP_MAX(LWIP_MAX((SNMP_MAX_OCTET_STRING_LEN), sizeof(u32_t)*(SNMP_MAX_OBJ_ID_LEN)), SNMP_MIN_VALUE_SIZE)
129
#endif
130
135
#ifndef SNMP_COMMUNITY
136
#define SNMP_COMMUNITY "public"
137
#endif
138
143
#ifndef SNMP_COMMUNITY_WRITE
144
#define SNMP_COMMUNITY_WRITE "private"
145
#endif
146
150
#ifndef SNMP_COMMUNITY_TRAP
151
#define SNMP_COMMUNITY_TRAP "public"
152
#endif
153
159
#ifndef SNMP_MAX_COMMUNITY_STR_LEN
160
#define SNMP_MAX_COMMUNITY_STR_LEN LWIP_MAX(LWIP_MAX(sizeof(SNMP_COMMUNITY), sizeof(SNMP_COMMUNITY_WRITE)), sizeof(SNMP_COMMUNITY_TRAP))
161
#endif
162
166
#ifndef SNMP_DEVICE_ENTERPRISE_OID
167
180
#define SNMP_LWIP_ENTERPRISE_OID 26381
181
#define SNMP_DEVICE_ENTERPRISE_OID {1, 3, 6, 1, 4, 1, SNMP_LWIP_ENTERPRISE_OID}
182
#define SNMP_DEVICE_ENTERPRISE_OID_LEN 7
183
#endif
184
188
#ifndef SNMP_DEBUG
189
#define SNMP_DEBUG LWIP_DBG_OFF
190
#endif
191
195
#ifndef SNMP_MIB_DEBUG
196
#define SNMP_MIB_DEBUG LWIP_DBG_OFF
197
#endif
198
202
#ifndef SNMP_LWIP_MIB2
203
#define SNMP_LWIP_MIB2 LWIP_SNMP
204
#endif
205
209
#ifndef SNMP_LWIP_MIB2_SYSDESC
210
#define SNMP_LWIP_MIB2_SYSDESC "lwIP"
211
#endif
212
217
#ifndef SNMP_LWIP_MIB2_SYSNAME
218
#define SNMP_LWIP_MIB2_SYSNAME "FQDN-unk"
219
#endif
220
225
#ifndef SNMP_LWIP_MIB2_SYSCONTACT
226
#define SNMP_LWIP_MIB2_SYSCONTACT ""
227
#endif
228
233
#ifndef SNMP_LWIP_MIB2_SYSLOCATION
234
#define SNMP_LWIP_MIB2_SYSLOCATION ""
235
#endif
236
245
#ifndef SNMP_LWIP_GETBULK_MAX_REPETITIONS
246
#define SNMP_LWIP_GETBULK_MAX_REPETITIONS 0
247
#endif
248
249
#endif
/* LWIP_HDR_SNMP_OPTS_H */
250
opt.h
Generated by
1.8.11