Netservices modded to read fragmented HTTP respsonse/payload from special purpose server - 180 bytes only

Committer:
RodColeman
Date:
Thu Sep 08 10:41:36 2011 +0000
Revision:
0:8f5825f330b0
setDataLen hacked to 180bytes

Who changed what in which revision?

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