Trial code integration web page update with analogue data and ntp support

Dependencies:   NTPClient_NetServices mbed

Committer:
pmr1
Date:
Fri Aug 06 17:57:45 2010 +0000
Revision:
0:8cc2035bebfc

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pmr1 0:8cc2035bebfc 1 /**
pmr1 0:8cc2035bebfc 2 * @file
pmr1 0:8cc2035bebfc 3 * SNMP Agent message handling structures.
pmr1 0:8cc2035bebfc 4 */
pmr1 0:8cc2035bebfc 5
pmr1 0:8cc2035bebfc 6 /*
pmr1 0:8cc2035bebfc 7 * Copyright (c) 2006 Axon Digital Design B.V., The Netherlands.
pmr1 0:8cc2035bebfc 8 * All rights reserved.
pmr1 0:8cc2035bebfc 9 *
pmr1 0:8cc2035bebfc 10 * Redistribution and use in source and binary forms, with or without modification,
pmr1 0:8cc2035bebfc 11 * are permitted provided that the following conditions are met:
pmr1 0:8cc2035bebfc 12 *
pmr1 0:8cc2035bebfc 13 * 1. Redistributions of source code must retain the above copyright notice,
pmr1 0:8cc2035bebfc 14 * this list of conditions and the following disclaimer.
pmr1 0:8cc2035bebfc 15 * 2. Redistributions in binary form must reproduce the above copyright notice,
pmr1 0:8cc2035bebfc 16 * this list of conditions and the following disclaimer in the documentation
pmr1 0:8cc2035bebfc 17 * and/or other materials provided with the distribution.
pmr1 0:8cc2035bebfc 18 * 3. The name of the author may not be used to endorse or promote products
pmr1 0:8cc2035bebfc 19 * derived from this software without specific prior written permission.
pmr1 0:8cc2035bebfc 20 *
pmr1 0:8cc2035bebfc 21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
pmr1 0:8cc2035bebfc 22 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
pmr1 0:8cc2035bebfc 23 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
pmr1 0:8cc2035bebfc 24 * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
pmr1 0:8cc2035bebfc 25 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
pmr1 0:8cc2035bebfc 26 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
pmr1 0:8cc2035bebfc 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
pmr1 0:8cc2035bebfc 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
pmr1 0:8cc2035bebfc 29 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
pmr1 0:8cc2035bebfc 30 * OF SUCH DAMAGE.
pmr1 0:8cc2035bebfc 31 *
pmr1 0:8cc2035bebfc 32 * Author: Christiaan Simons <christiaan.simons@axon.tv>
pmr1 0:8cc2035bebfc 33 */
pmr1 0:8cc2035bebfc 34
pmr1 0:8cc2035bebfc 35 #ifndef __LWIP_SNMP_MSG_H__
pmr1 0:8cc2035bebfc 36 #define __LWIP_SNMP_MSG_H__
pmr1 0:8cc2035bebfc 37
pmr1 0:8cc2035bebfc 38 #include "lwip/opt.h"
pmr1 0:8cc2035bebfc 39 #include "lwip/snmp.h"
pmr1 0:8cc2035bebfc 40 #include "lwip/snmp_structs.h"
pmr1 0:8cc2035bebfc 41 #include "lwip/ip_addr.h"
pmr1 0:8cc2035bebfc 42 #include "lwip/err.h"
pmr1 0:8cc2035bebfc 43
pmr1 0:8cc2035bebfc 44 #if LWIP_SNMP
pmr1 0:8cc2035bebfc 45
pmr1 0:8cc2035bebfc 46 #if SNMP_PRIVATE_MIB
pmr1 0:8cc2035bebfc 47 /* When using a private MIB, you have to create a file 'private_mib.h' that contains
pmr1 0:8cc2035bebfc 48 * a 'struct mib_array_node mib_private' which contains your MIB. */
pmr1 0:8cc2035bebfc 49 #include "private_mib.h"
pmr1 0:8cc2035bebfc 50 #endif
pmr1 0:8cc2035bebfc 51
pmr1 0:8cc2035bebfc 52 #ifdef __cplusplus
pmr1 0:8cc2035bebfc 53 extern "C" {
pmr1 0:8cc2035bebfc 54 #endif
pmr1 0:8cc2035bebfc 55
pmr1 0:8cc2035bebfc 56 /* The listen port of the SNMP agent. Clients have to make their requests to
pmr1 0:8cc2035bebfc 57 this port. Most standard clients won't work if you change this! */
pmr1 0:8cc2035bebfc 58 #ifndef SNMP_IN_PORT
pmr1 0:8cc2035bebfc 59 #define SNMP_IN_PORT 161
pmr1 0:8cc2035bebfc 60 #endif
pmr1 0:8cc2035bebfc 61 /* The remote port the SNMP agent sends traps to. Most standard trap sinks won't
pmr1 0:8cc2035bebfc 62 work if you change this! */
pmr1 0:8cc2035bebfc 63 #ifndef SNMP_TRAP_PORT
pmr1 0:8cc2035bebfc 64 #define SNMP_TRAP_PORT 162
pmr1 0:8cc2035bebfc 65 #endif
pmr1 0:8cc2035bebfc 66
pmr1 0:8cc2035bebfc 67 #define SNMP_ES_NOERROR 0
pmr1 0:8cc2035bebfc 68 #define SNMP_ES_TOOBIG 1
pmr1 0:8cc2035bebfc 69 #define SNMP_ES_NOSUCHNAME 2
pmr1 0:8cc2035bebfc 70 #define SNMP_ES_BADVALUE 3
pmr1 0:8cc2035bebfc 71 #define SNMP_ES_READONLY 4
pmr1 0:8cc2035bebfc 72 #define SNMP_ES_GENERROR 5
pmr1 0:8cc2035bebfc 73
pmr1 0:8cc2035bebfc 74 #define SNMP_GENTRAP_COLDSTART 0
pmr1 0:8cc2035bebfc 75 #define SNMP_GENTRAP_WARMSTART 1
pmr1 0:8cc2035bebfc 76 #define SNMP_GENTRAP_AUTHFAIL 4
pmr1 0:8cc2035bebfc 77 #define SNMP_GENTRAP_ENTERPRISESPC 6
pmr1 0:8cc2035bebfc 78
pmr1 0:8cc2035bebfc 79 struct snmp_varbind
pmr1 0:8cc2035bebfc 80 {
pmr1 0:8cc2035bebfc 81 /* next pointer, NULL for last in list */
pmr1 0:8cc2035bebfc 82 struct snmp_varbind *next;
pmr1 0:8cc2035bebfc 83 /* previous pointer, NULL for first in list */
pmr1 0:8cc2035bebfc 84 struct snmp_varbind *prev;
pmr1 0:8cc2035bebfc 85
pmr1 0:8cc2035bebfc 86 /* object identifier length (in s32_t) */
pmr1 0:8cc2035bebfc 87 u8_t ident_len;
pmr1 0:8cc2035bebfc 88 /* object identifier array */
pmr1 0:8cc2035bebfc 89 s32_t *ident;
pmr1 0:8cc2035bebfc 90
pmr1 0:8cc2035bebfc 91 /* object value ASN1 type */
pmr1 0:8cc2035bebfc 92 u8_t value_type;
pmr1 0:8cc2035bebfc 93 /* object value length (in u8_t) */
pmr1 0:8cc2035bebfc 94 u8_t value_len;
pmr1 0:8cc2035bebfc 95 /* object value */
pmr1 0:8cc2035bebfc 96 void *value;
pmr1 0:8cc2035bebfc 97
pmr1 0:8cc2035bebfc 98 /* encoding varbind seq length length */
pmr1 0:8cc2035bebfc 99 u8_t seqlenlen;
pmr1 0:8cc2035bebfc 100 /* encoding object identifier length length */
pmr1 0:8cc2035bebfc 101 u8_t olenlen;
pmr1 0:8cc2035bebfc 102 /* encoding object value length length */
pmr1 0:8cc2035bebfc 103 u8_t vlenlen;
pmr1 0:8cc2035bebfc 104 /* encoding varbind seq length */
pmr1 0:8cc2035bebfc 105 u16_t seqlen;
pmr1 0:8cc2035bebfc 106 /* encoding object identifier length */
pmr1 0:8cc2035bebfc 107 u16_t olen;
pmr1 0:8cc2035bebfc 108 /* encoding object value length */
pmr1 0:8cc2035bebfc 109 u16_t vlen;
pmr1 0:8cc2035bebfc 110 };
pmr1 0:8cc2035bebfc 111
pmr1 0:8cc2035bebfc 112 struct snmp_varbind_root
pmr1 0:8cc2035bebfc 113 {
pmr1 0:8cc2035bebfc 114 struct snmp_varbind *head;
pmr1 0:8cc2035bebfc 115 struct snmp_varbind *tail;
pmr1 0:8cc2035bebfc 116 /* number of variable bindings in list */
pmr1 0:8cc2035bebfc 117 u8_t count;
pmr1 0:8cc2035bebfc 118 /* encoding varbind-list seq length length */
pmr1 0:8cc2035bebfc 119 u8_t seqlenlen;
pmr1 0:8cc2035bebfc 120 /* encoding varbind-list seq length */
pmr1 0:8cc2035bebfc 121 u16_t seqlen;
pmr1 0:8cc2035bebfc 122 };
pmr1 0:8cc2035bebfc 123
pmr1 0:8cc2035bebfc 124 /** output response message header length fields */
pmr1 0:8cc2035bebfc 125 struct snmp_resp_header_lengths
pmr1 0:8cc2035bebfc 126 {
pmr1 0:8cc2035bebfc 127 /* encoding error-index length length */
pmr1 0:8cc2035bebfc 128 u8_t erridxlenlen;
pmr1 0:8cc2035bebfc 129 /* encoding error-status length length */
pmr1 0:8cc2035bebfc 130 u8_t errstatlenlen;
pmr1 0:8cc2035bebfc 131 /* encoding request id length length */
pmr1 0:8cc2035bebfc 132 u8_t ridlenlen;
pmr1 0:8cc2035bebfc 133 /* encoding pdu length length */
pmr1 0:8cc2035bebfc 134 u8_t pdulenlen;
pmr1 0:8cc2035bebfc 135 /* encoding community length length */
pmr1 0:8cc2035bebfc 136 u8_t comlenlen;
pmr1 0:8cc2035bebfc 137 /* encoding version length length */
pmr1 0:8cc2035bebfc 138 u8_t verlenlen;
pmr1 0:8cc2035bebfc 139 /* encoding sequence length length */
pmr1 0:8cc2035bebfc 140 u8_t seqlenlen;
pmr1 0:8cc2035bebfc 141
pmr1 0:8cc2035bebfc 142 /* encoding error-index length */
pmr1 0:8cc2035bebfc 143 u16_t erridxlen;
pmr1 0:8cc2035bebfc 144 /* encoding error-status length */
pmr1 0:8cc2035bebfc 145 u16_t errstatlen;
pmr1 0:8cc2035bebfc 146 /* encoding request id length */
pmr1 0:8cc2035bebfc 147 u16_t ridlen;
pmr1 0:8cc2035bebfc 148 /* encoding pdu length */
pmr1 0:8cc2035bebfc 149 u16_t pdulen;
pmr1 0:8cc2035bebfc 150 /* encoding community length */
pmr1 0:8cc2035bebfc 151 u16_t comlen;
pmr1 0:8cc2035bebfc 152 /* encoding version length */
pmr1 0:8cc2035bebfc 153 u16_t verlen;
pmr1 0:8cc2035bebfc 154 /* encoding sequence length */
pmr1 0:8cc2035bebfc 155 u16_t seqlen;
pmr1 0:8cc2035bebfc 156 };
pmr1 0:8cc2035bebfc 157
pmr1 0:8cc2035bebfc 158 /** output response message header length fields */
pmr1 0:8cc2035bebfc 159 struct snmp_trap_header_lengths
pmr1 0:8cc2035bebfc 160 {
pmr1 0:8cc2035bebfc 161 /* encoding timestamp length length */
pmr1 0:8cc2035bebfc 162 u8_t tslenlen;
pmr1 0:8cc2035bebfc 163 /* encoding specific-trap length length */
pmr1 0:8cc2035bebfc 164 u8_t strplenlen;
pmr1 0:8cc2035bebfc 165 /* encoding generic-trap length length */
pmr1 0:8cc2035bebfc 166 u8_t gtrplenlen;
pmr1 0:8cc2035bebfc 167 /* encoding agent-addr length length */
pmr1 0:8cc2035bebfc 168 u8_t aaddrlenlen;
pmr1 0:8cc2035bebfc 169 /* encoding enterprise-id length length */
pmr1 0:8cc2035bebfc 170 u8_t eidlenlen;
pmr1 0:8cc2035bebfc 171 /* encoding pdu length length */
pmr1 0:8cc2035bebfc 172 u8_t pdulenlen;
pmr1 0:8cc2035bebfc 173 /* encoding community length length */
pmr1 0:8cc2035bebfc 174 u8_t comlenlen;
pmr1 0:8cc2035bebfc 175 /* encoding version length length */
pmr1 0:8cc2035bebfc 176 u8_t verlenlen;
pmr1 0:8cc2035bebfc 177 /* encoding sequence length length */
pmr1 0:8cc2035bebfc 178 u8_t seqlenlen;
pmr1 0:8cc2035bebfc 179
pmr1 0:8cc2035bebfc 180 /* encoding timestamp length */
pmr1 0:8cc2035bebfc 181 u16_t tslen;
pmr1 0:8cc2035bebfc 182 /* encoding specific-trap length */
pmr1 0:8cc2035bebfc 183 u16_t strplen;
pmr1 0:8cc2035bebfc 184 /* encoding generic-trap length */
pmr1 0:8cc2035bebfc 185 u16_t gtrplen;
pmr1 0:8cc2035bebfc 186 /* encoding agent-addr length */
pmr1 0:8cc2035bebfc 187 u16_t aaddrlen;
pmr1 0:8cc2035bebfc 188 /* encoding enterprise-id length */
pmr1 0:8cc2035bebfc 189 u16_t eidlen;
pmr1 0:8cc2035bebfc 190 /* encoding pdu length */
pmr1 0:8cc2035bebfc 191 u16_t pdulen;
pmr1 0:8cc2035bebfc 192 /* encoding community length */
pmr1 0:8cc2035bebfc 193 u16_t comlen;
pmr1 0:8cc2035bebfc 194 /* encoding version length */
pmr1 0:8cc2035bebfc 195 u16_t verlen;
pmr1 0:8cc2035bebfc 196 /* encoding sequence length */
pmr1 0:8cc2035bebfc 197 u16_t seqlen;
pmr1 0:8cc2035bebfc 198 };
pmr1 0:8cc2035bebfc 199
pmr1 0:8cc2035bebfc 200 /* Accepting new SNMP messages. */
pmr1 0:8cc2035bebfc 201 #define SNMP_MSG_EMPTY 0
pmr1 0:8cc2035bebfc 202 /* Search for matching object for variable binding. */
pmr1 0:8cc2035bebfc 203 #define SNMP_MSG_SEARCH_OBJ 1
pmr1 0:8cc2035bebfc 204 /* Perform SNMP operation on in-memory object.
pmr1 0:8cc2035bebfc 205 Pass-through states, for symmetry only. */
pmr1 0:8cc2035bebfc 206 #define SNMP_MSG_INTERNAL_GET_OBJDEF 2
pmr1 0:8cc2035bebfc 207 #define SNMP_MSG_INTERNAL_GET_VALUE 3
pmr1 0:8cc2035bebfc 208 #define SNMP_MSG_INTERNAL_SET_TEST 4
pmr1 0:8cc2035bebfc 209 #define SNMP_MSG_INTERNAL_GET_OBJDEF_S 5
pmr1 0:8cc2035bebfc 210 #define SNMP_MSG_INTERNAL_SET_VALUE 6
pmr1 0:8cc2035bebfc 211 /* Perform SNMP operation on object located externally.
pmr1 0:8cc2035bebfc 212 In theory this could be used for building a proxy agent.
pmr1 0:8cc2035bebfc 213 Practical use is for an enterprise spc. app. gateway. */
pmr1 0:8cc2035bebfc 214 #define SNMP_MSG_EXTERNAL_GET_OBJDEF 7
pmr1 0:8cc2035bebfc 215 #define SNMP_MSG_EXTERNAL_GET_VALUE 8
pmr1 0:8cc2035bebfc 216 #define SNMP_MSG_EXTERNAL_SET_TEST 9
pmr1 0:8cc2035bebfc 217 #define SNMP_MSG_EXTERNAL_GET_OBJDEF_S 10
pmr1 0:8cc2035bebfc 218 #define SNMP_MSG_EXTERNAL_SET_VALUE 11
pmr1 0:8cc2035bebfc 219
pmr1 0:8cc2035bebfc 220 #define SNMP_COMMUNITY_STR_LEN 64
pmr1 0:8cc2035bebfc 221 struct snmp_msg_pstat
pmr1 0:8cc2035bebfc 222 {
pmr1 0:8cc2035bebfc 223 /* lwIP local port (161) binding */
pmr1 0:8cc2035bebfc 224 struct udp_pcb *pcb;
pmr1 0:8cc2035bebfc 225 /* source IP address */
pmr1 0:8cc2035bebfc 226 ip_addr_t sip;
pmr1 0:8cc2035bebfc 227 /* source UDP port */
pmr1 0:8cc2035bebfc 228 u16_t sp;
pmr1 0:8cc2035bebfc 229 /* request type */
pmr1 0:8cc2035bebfc 230 u8_t rt;
pmr1 0:8cc2035bebfc 231 /* request ID */
pmr1 0:8cc2035bebfc 232 s32_t rid;
pmr1 0:8cc2035bebfc 233 /* error status */
pmr1 0:8cc2035bebfc 234 s32_t error_status;
pmr1 0:8cc2035bebfc 235 /* error index */
pmr1 0:8cc2035bebfc 236 s32_t error_index;
pmr1 0:8cc2035bebfc 237 /* community name (zero terminated) */
pmr1 0:8cc2035bebfc 238 u8_t community[SNMP_COMMUNITY_STR_LEN + 1];
pmr1 0:8cc2035bebfc 239 /* community string length (exclusive zero term) */
pmr1 0:8cc2035bebfc 240 u8_t com_strlen;
pmr1 0:8cc2035bebfc 241 /* one out of MSG_EMPTY, MSG_DEMUX, MSG_INTERNAL, MSG_EXTERNAL_x */
pmr1 0:8cc2035bebfc 242 u8_t state;
pmr1 0:8cc2035bebfc 243 /* saved arguments for MSG_EXTERNAL_x */
pmr1 0:8cc2035bebfc 244 struct mib_external_node *ext_mib_node;
pmr1 0:8cc2035bebfc 245 struct snmp_name_ptr ext_name_ptr;
pmr1 0:8cc2035bebfc 246 struct obj_def ext_object_def;
pmr1 0:8cc2035bebfc 247 struct snmp_obj_id ext_oid;
pmr1 0:8cc2035bebfc 248 /* index into input variable binding list */
pmr1 0:8cc2035bebfc 249 u8_t vb_idx;
pmr1 0:8cc2035bebfc 250 /* ptr into input variable binding list */
pmr1 0:8cc2035bebfc 251 struct snmp_varbind *vb_ptr;
pmr1 0:8cc2035bebfc 252 /* list of variable bindings from input */
pmr1 0:8cc2035bebfc 253 struct snmp_varbind_root invb;
pmr1 0:8cc2035bebfc 254 /* list of variable bindings to output */
pmr1 0:8cc2035bebfc 255 struct snmp_varbind_root outvb;
pmr1 0:8cc2035bebfc 256 /* output response lengths used in ASN encoding */
pmr1 0:8cc2035bebfc 257 struct snmp_resp_header_lengths rhl;
pmr1 0:8cc2035bebfc 258 };
pmr1 0:8cc2035bebfc 259
pmr1 0:8cc2035bebfc 260 struct snmp_msg_trap
pmr1 0:8cc2035bebfc 261 {
pmr1 0:8cc2035bebfc 262 /* lwIP local port (161) binding */
pmr1 0:8cc2035bebfc 263 struct udp_pcb *pcb;
pmr1 0:8cc2035bebfc 264 /* destination IP address in network order */
pmr1 0:8cc2035bebfc 265 ip_addr_t dip;
pmr1 0:8cc2035bebfc 266
pmr1 0:8cc2035bebfc 267 /* source enterprise ID (sysObjectID) */
pmr1 0:8cc2035bebfc 268 struct snmp_obj_id *enterprise;
pmr1 0:8cc2035bebfc 269 /* source IP address, raw network order format */
pmr1 0:8cc2035bebfc 270 u8_t sip_raw[4];
pmr1 0:8cc2035bebfc 271 /* generic trap code */
pmr1 0:8cc2035bebfc 272 u32_t gen_trap;
pmr1 0:8cc2035bebfc 273 /* specific trap code */
pmr1 0:8cc2035bebfc 274 u32_t spc_trap;
pmr1 0:8cc2035bebfc 275 /* timestamp */
pmr1 0:8cc2035bebfc 276 u32_t ts;
pmr1 0:8cc2035bebfc 277 /* list of variable bindings to output */
pmr1 0:8cc2035bebfc 278 struct snmp_varbind_root outvb;
pmr1 0:8cc2035bebfc 279 /* output trap lengths used in ASN encoding */
pmr1 0:8cc2035bebfc 280 struct snmp_trap_header_lengths thl;
pmr1 0:8cc2035bebfc 281 };
pmr1 0:8cc2035bebfc 282
pmr1 0:8cc2035bebfc 283 /** Agent Version constant, 0 = v1 oddity */
pmr1 0:8cc2035bebfc 284 extern const s32_t snmp_version;
pmr1 0:8cc2035bebfc 285 /** Agent default "public" community string */
pmr1 0:8cc2035bebfc 286 extern const char snmp_publiccommunity[7];
pmr1 0:8cc2035bebfc 287
pmr1 0:8cc2035bebfc 288 extern struct snmp_msg_trap trap_msg;
pmr1 0:8cc2035bebfc 289
pmr1 0:8cc2035bebfc 290 /** Agent setup, start listening to port 161. */
pmr1 0:8cc2035bebfc 291 void snmp_init(void);
pmr1 0:8cc2035bebfc 292 void snmp_trap_dst_enable(u8_t dst_idx, u8_t enable);
pmr1 0:8cc2035bebfc 293 void snmp_trap_dst_ip_set(u8_t dst_idx, ip_addr_t *dst);
pmr1 0:8cc2035bebfc 294
pmr1 0:8cc2035bebfc 295 /** Varbind-list functions. */
pmr1 0:8cc2035bebfc 296 struct snmp_varbind* snmp_varbind_alloc(struct snmp_obj_id *oid, u8_t type, u8_t len);
pmr1 0:8cc2035bebfc 297 void snmp_varbind_free(struct snmp_varbind *vb);
pmr1 0:8cc2035bebfc 298 void snmp_varbind_list_free(struct snmp_varbind_root *root);
pmr1 0:8cc2035bebfc 299 void snmp_varbind_tail_add(struct snmp_varbind_root *root, struct snmp_varbind *vb);
pmr1 0:8cc2035bebfc 300 struct snmp_varbind* snmp_varbind_tail_remove(struct snmp_varbind_root *root);
pmr1 0:8cc2035bebfc 301
pmr1 0:8cc2035bebfc 302 /** Handle an internal (recv) or external (private response) event. */
pmr1 0:8cc2035bebfc 303 void snmp_msg_event(u8_t request_id);
pmr1 0:8cc2035bebfc 304 err_t snmp_send_response(struct snmp_msg_pstat *m_stat);
pmr1 0:8cc2035bebfc 305 err_t snmp_send_trap(s8_t generic_trap, struct snmp_obj_id *eoid, s32_t specific_trap);
pmr1 0:8cc2035bebfc 306 void snmp_coldstart_trap(void);
pmr1 0:8cc2035bebfc 307 void snmp_authfail_trap(void);
pmr1 0:8cc2035bebfc 308
pmr1 0:8cc2035bebfc 309 #ifdef __cplusplus
pmr1 0:8cc2035bebfc 310 }
pmr1 0:8cc2035bebfc 311 #endif
pmr1 0:8cc2035bebfc 312
pmr1 0:8cc2035bebfc 313 #endif /* LWIP_SNMP */
pmr1 0:8cc2035bebfc 314
pmr1 0:8cc2035bebfc 315 #endif /* __LWIP_SNMP_MSG_H__ */