TwitterExample with newer library (2012Aug)

Dependencies:   EthernetNetIf HTTPClient mbed

Committer:
nxpfan
Date:
Wed Aug 29 03:50:19 2012 +0000
Revision:
0:075157567b0c
simple twitter example with newer library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nxpfan 0:075157567b0c 1 /*
nxpfan 0:075157567b0c 2 * Copyright (c) 2001, 2002 Leon Woestenberg <leon.woestenberg@axon.tv>
nxpfan 0:075157567b0c 3 * Copyright (c) 2001, 2002 Axon Digital Design B.V., The Netherlands.
nxpfan 0:075157567b0c 4 * All rights reserved.
nxpfan 0:075157567b0c 5 *
nxpfan 0:075157567b0c 6 * Redistribution and use in source and binary forms, with or without modification,
nxpfan 0:075157567b0c 7 * are permitted provided that the following conditions are met:
nxpfan 0:075157567b0c 8 *
nxpfan 0:075157567b0c 9 * 1. Redistributions of source code must retain the above copyright notice,
nxpfan 0:075157567b0c 10 * this list of conditions and the following disclaimer.
nxpfan 0:075157567b0c 11 * 2. Redistributions in binary form must reproduce the above copyright notice,
nxpfan 0:075157567b0c 12 * this list of conditions and the following disclaimer in the documentation
nxpfan 0:075157567b0c 13 * and/or other materials provided with the distribution.
nxpfan 0:075157567b0c 14 * 3. The name of the author may not be used to endorse or promote products
nxpfan 0:075157567b0c 15 * derived from this software without specific prior written permission.
nxpfan 0:075157567b0c 16 *
nxpfan 0:075157567b0c 17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
nxpfan 0:075157567b0c 18 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
nxpfan 0:075157567b0c 19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
nxpfan 0:075157567b0c 20 * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
nxpfan 0:075157567b0c 21 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
nxpfan 0:075157567b0c 22 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
nxpfan 0:075157567b0c 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
nxpfan 0:075157567b0c 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
nxpfan 0:075157567b0c 25 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
nxpfan 0:075157567b0c 26 * OF SUCH DAMAGE.
nxpfan 0:075157567b0c 27 *
nxpfan 0:075157567b0c 28 * This file is part of the lwIP TCP/IP stack.
nxpfan 0:075157567b0c 29 *
nxpfan 0:075157567b0c 30 * Author: Leon Woestenberg <leon.woestenberg@axon.tv>
nxpfan 0:075157567b0c 31 *
nxpfan 0:075157567b0c 32 */
nxpfan 0:075157567b0c 33 #ifndef __LWIP_SNMP_H__
nxpfan 0:075157567b0c 34 #define __LWIP_SNMP_H__
nxpfan 0:075157567b0c 35
nxpfan 0:075157567b0c 36 #include "lwip/opt.h"
nxpfan 0:075157567b0c 37
nxpfan 0:075157567b0c 38 #ifdef __cplusplus
nxpfan 0:075157567b0c 39 extern "C" {
nxpfan 0:075157567b0c 40 #endif
nxpfan 0:075157567b0c 41
nxpfan 0:075157567b0c 42 #include "lwip/ip_addr.h"
nxpfan 0:075157567b0c 43
nxpfan 0:075157567b0c 44 struct udp_pcb;
nxpfan 0:075157567b0c 45 struct netif;
nxpfan 0:075157567b0c 46
nxpfan 0:075157567b0c 47 /**
nxpfan 0:075157567b0c 48 * @see RFC1213, "MIB-II, 6. Definitions"
nxpfan 0:075157567b0c 49 */
nxpfan 0:075157567b0c 50 enum snmp_ifType {
nxpfan 0:075157567b0c 51 snmp_ifType_other=1, /* none of the following */
nxpfan 0:075157567b0c 52 snmp_ifType_regular1822,
nxpfan 0:075157567b0c 53 snmp_ifType_hdh1822,
nxpfan 0:075157567b0c 54 snmp_ifType_ddn_x25,
nxpfan 0:075157567b0c 55 snmp_ifType_rfc877_x25,
nxpfan 0:075157567b0c 56 snmp_ifType_ethernet_csmacd,
nxpfan 0:075157567b0c 57 snmp_ifType_iso88023_csmacd,
nxpfan 0:075157567b0c 58 snmp_ifType_iso88024_tokenBus,
nxpfan 0:075157567b0c 59 snmp_ifType_iso88025_tokenRing,
nxpfan 0:075157567b0c 60 snmp_ifType_iso88026_man,
nxpfan 0:075157567b0c 61 snmp_ifType_starLan,
nxpfan 0:075157567b0c 62 snmp_ifType_proteon_10Mbit,
nxpfan 0:075157567b0c 63 snmp_ifType_proteon_80Mbit,
nxpfan 0:075157567b0c 64 snmp_ifType_hyperchannel,
nxpfan 0:075157567b0c 65 snmp_ifType_fddi,
nxpfan 0:075157567b0c 66 snmp_ifType_lapb,
nxpfan 0:075157567b0c 67 snmp_ifType_sdlc,
nxpfan 0:075157567b0c 68 snmp_ifType_ds1, /* T-1 */
nxpfan 0:075157567b0c 69 snmp_ifType_e1, /* european equiv. of T-1 */
nxpfan 0:075157567b0c 70 snmp_ifType_basicISDN,
nxpfan 0:075157567b0c 71 snmp_ifType_primaryISDN, /* proprietary serial */
nxpfan 0:075157567b0c 72 snmp_ifType_propPointToPointSerial,
nxpfan 0:075157567b0c 73 snmp_ifType_ppp,
nxpfan 0:075157567b0c 74 snmp_ifType_softwareLoopback,
nxpfan 0:075157567b0c 75 snmp_ifType_eon, /* CLNP over IP [11] */
nxpfan 0:075157567b0c 76 snmp_ifType_ethernet_3Mbit,
nxpfan 0:075157567b0c 77 snmp_ifType_nsip, /* XNS over IP */
nxpfan 0:075157567b0c 78 snmp_ifType_slip, /* generic SLIP */
nxpfan 0:075157567b0c 79 snmp_ifType_ultra, /* ULTRA technologies */
nxpfan 0:075157567b0c 80 snmp_ifType_ds3, /* T-3 */
nxpfan 0:075157567b0c 81 snmp_ifType_sip, /* SMDS */
nxpfan 0:075157567b0c 82 snmp_ifType_frame_relay
nxpfan 0:075157567b0c 83 };
nxpfan 0:075157567b0c 84
nxpfan 0:075157567b0c 85 #if LWIP_SNMP /* don't build if not configured for use in lwipopts.h */
nxpfan 0:075157567b0c 86
nxpfan 0:075157567b0c 87 /** SNMP "sysuptime" Interval */
nxpfan 0:075157567b0c 88 #define SNMP_SYSUPTIME_INTERVAL 10
nxpfan 0:075157567b0c 89
nxpfan 0:075157567b0c 90 /** fixed maximum length for object identifier type */
nxpfan 0:075157567b0c 91 #define LWIP_SNMP_OBJ_ID_LEN 32
nxpfan 0:075157567b0c 92
nxpfan 0:075157567b0c 93 /** internal object identifier representation */
nxpfan 0:075157567b0c 94 struct snmp_obj_id
nxpfan 0:075157567b0c 95 {
nxpfan 0:075157567b0c 96 u8_t len;
nxpfan 0:075157567b0c 97 s32_t id[LWIP_SNMP_OBJ_ID_LEN];
nxpfan 0:075157567b0c 98 };
nxpfan 0:075157567b0c 99
nxpfan 0:075157567b0c 100 /* system */
nxpfan 0:075157567b0c 101 void snmp_set_sysdesr(u8_t* str, u8_t* len);
nxpfan 0:075157567b0c 102 void snmp_set_sysobjid(struct snmp_obj_id *oid);
nxpfan 0:075157567b0c 103 void snmp_get_sysobjid_ptr(struct snmp_obj_id **oid);
nxpfan 0:075157567b0c 104 void snmp_inc_sysuptime(void);
nxpfan 0:075157567b0c 105 void snmp_add_sysuptime(u32_t value);
nxpfan 0:075157567b0c 106 void snmp_get_sysuptime(u32_t *value);
nxpfan 0:075157567b0c 107 void snmp_set_syscontact(u8_t *ocstr, u8_t *ocstrlen);
nxpfan 0:075157567b0c 108 void snmp_set_sysname(u8_t *ocstr, u8_t *ocstrlen);
nxpfan 0:075157567b0c 109 void snmp_set_syslocation(u8_t *ocstr, u8_t *ocstrlen);
nxpfan 0:075157567b0c 110
nxpfan 0:075157567b0c 111 /* network interface */
nxpfan 0:075157567b0c 112 void snmp_add_ifinoctets(struct netif *ni, u32_t value);
nxpfan 0:075157567b0c 113 void snmp_inc_ifinucastpkts(struct netif *ni);
nxpfan 0:075157567b0c 114 void snmp_inc_ifinnucastpkts(struct netif *ni);
nxpfan 0:075157567b0c 115 void snmp_inc_ifindiscards(struct netif *ni);
nxpfan 0:075157567b0c 116 void snmp_add_ifoutoctets(struct netif *ni, u32_t value);
nxpfan 0:075157567b0c 117 void snmp_inc_ifoutucastpkts(struct netif *ni);
nxpfan 0:075157567b0c 118 void snmp_inc_ifoutnucastpkts(struct netif *ni);
nxpfan 0:075157567b0c 119 void snmp_inc_ifoutdiscards(struct netif *ni);
nxpfan 0:075157567b0c 120 void snmp_inc_iflist(void);
nxpfan 0:075157567b0c 121 void snmp_dec_iflist(void);
nxpfan 0:075157567b0c 122
nxpfan 0:075157567b0c 123 /* ARP (for atTable and ipNetToMediaTable) */
nxpfan 0:075157567b0c 124 void snmp_insert_arpidx_tree(struct netif *ni, ip_addr_t *ip);
nxpfan 0:075157567b0c 125 void snmp_delete_arpidx_tree(struct netif *ni, ip_addr_t *ip);
nxpfan 0:075157567b0c 126
nxpfan 0:075157567b0c 127 /* IP */
nxpfan 0:075157567b0c 128 void snmp_inc_ipinreceives(void);
nxpfan 0:075157567b0c 129 void snmp_inc_ipinhdrerrors(void);
nxpfan 0:075157567b0c 130 void snmp_inc_ipinaddrerrors(void);
nxpfan 0:075157567b0c 131 void snmp_inc_ipforwdatagrams(void);
nxpfan 0:075157567b0c 132 void snmp_inc_ipinunknownprotos(void);
nxpfan 0:075157567b0c 133 void snmp_inc_ipindiscards(void);
nxpfan 0:075157567b0c 134 void snmp_inc_ipindelivers(void);
nxpfan 0:075157567b0c 135 void snmp_inc_ipoutrequests(void);
nxpfan 0:075157567b0c 136 void snmp_inc_ipoutdiscards(void);
nxpfan 0:075157567b0c 137 void snmp_inc_ipoutnoroutes(void);
nxpfan 0:075157567b0c 138 void snmp_inc_ipreasmreqds(void);
nxpfan 0:075157567b0c 139 void snmp_inc_ipreasmoks(void);
nxpfan 0:075157567b0c 140 void snmp_inc_ipreasmfails(void);
nxpfan 0:075157567b0c 141 void snmp_inc_ipfragoks(void);
nxpfan 0:075157567b0c 142 void snmp_inc_ipfragfails(void);
nxpfan 0:075157567b0c 143 void snmp_inc_ipfragcreates(void);
nxpfan 0:075157567b0c 144 void snmp_inc_iproutingdiscards(void);
nxpfan 0:075157567b0c 145 void snmp_insert_ipaddridx_tree(struct netif *ni);
nxpfan 0:075157567b0c 146 void snmp_delete_ipaddridx_tree(struct netif *ni);
nxpfan 0:075157567b0c 147 void snmp_insert_iprteidx_tree(u8_t dflt, struct netif *ni);
nxpfan 0:075157567b0c 148 void snmp_delete_iprteidx_tree(u8_t dflt, struct netif *ni);
nxpfan 0:075157567b0c 149
nxpfan 0:075157567b0c 150 /* ICMP */
nxpfan 0:075157567b0c 151 void snmp_inc_icmpinmsgs(void);
nxpfan 0:075157567b0c 152 void snmp_inc_icmpinerrors(void);
nxpfan 0:075157567b0c 153 void snmp_inc_icmpindestunreachs(void);
nxpfan 0:075157567b0c 154 void snmp_inc_icmpintimeexcds(void);
nxpfan 0:075157567b0c 155 void snmp_inc_icmpinparmprobs(void);
nxpfan 0:075157567b0c 156 void snmp_inc_icmpinsrcquenchs(void);
nxpfan 0:075157567b0c 157 void snmp_inc_icmpinredirects(void);
nxpfan 0:075157567b0c 158 void snmp_inc_icmpinechos(void);
nxpfan 0:075157567b0c 159 void snmp_inc_icmpinechoreps(void);
nxpfan 0:075157567b0c 160 void snmp_inc_icmpintimestamps(void);
nxpfan 0:075157567b0c 161 void snmp_inc_icmpintimestampreps(void);
nxpfan 0:075157567b0c 162 void snmp_inc_icmpinaddrmasks(void);
nxpfan 0:075157567b0c 163 void snmp_inc_icmpinaddrmaskreps(void);
nxpfan 0:075157567b0c 164 void snmp_inc_icmpoutmsgs(void);
nxpfan 0:075157567b0c 165 void snmp_inc_icmpouterrors(void);
nxpfan 0:075157567b0c 166 void snmp_inc_icmpoutdestunreachs(void);
nxpfan 0:075157567b0c 167 void snmp_inc_icmpouttimeexcds(void);
nxpfan 0:075157567b0c 168 void snmp_inc_icmpoutparmprobs(void);
nxpfan 0:075157567b0c 169 void snmp_inc_icmpoutsrcquenchs(void);
nxpfan 0:075157567b0c 170 void snmp_inc_icmpoutredirects(void);
nxpfan 0:075157567b0c 171 void snmp_inc_icmpoutechos(void);
nxpfan 0:075157567b0c 172 void snmp_inc_icmpoutechoreps(void);
nxpfan 0:075157567b0c 173 void snmp_inc_icmpouttimestamps(void);
nxpfan 0:075157567b0c 174 void snmp_inc_icmpouttimestampreps(void);
nxpfan 0:075157567b0c 175 void snmp_inc_icmpoutaddrmasks(void);
nxpfan 0:075157567b0c 176 void snmp_inc_icmpoutaddrmaskreps(void);
nxpfan 0:075157567b0c 177
nxpfan 0:075157567b0c 178 /* TCP */
nxpfan 0:075157567b0c 179 void snmp_inc_tcpactiveopens(void);
nxpfan 0:075157567b0c 180 void snmp_inc_tcppassiveopens(void);
nxpfan 0:075157567b0c 181 void snmp_inc_tcpattemptfails(void);
nxpfan 0:075157567b0c 182 void snmp_inc_tcpestabresets(void);
nxpfan 0:075157567b0c 183 void snmp_inc_tcpinsegs(void);
nxpfan 0:075157567b0c 184 void snmp_inc_tcpoutsegs(void);
nxpfan 0:075157567b0c 185 void snmp_inc_tcpretranssegs(void);
nxpfan 0:075157567b0c 186 void snmp_inc_tcpinerrs(void);
nxpfan 0:075157567b0c 187 void snmp_inc_tcpoutrsts(void);
nxpfan 0:075157567b0c 188
nxpfan 0:075157567b0c 189 /* UDP */
nxpfan 0:075157567b0c 190 void snmp_inc_udpindatagrams(void);
nxpfan 0:075157567b0c 191 void snmp_inc_udpnoports(void);
nxpfan 0:075157567b0c 192 void snmp_inc_udpinerrors(void);
nxpfan 0:075157567b0c 193 void snmp_inc_udpoutdatagrams(void);
nxpfan 0:075157567b0c 194 void snmp_insert_udpidx_tree(struct udp_pcb *pcb);
nxpfan 0:075157567b0c 195 void snmp_delete_udpidx_tree(struct udp_pcb *pcb);
nxpfan 0:075157567b0c 196
nxpfan 0:075157567b0c 197 /* SNMP */
nxpfan 0:075157567b0c 198 void snmp_inc_snmpinpkts(void);
nxpfan 0:075157567b0c 199 void snmp_inc_snmpoutpkts(void);
nxpfan 0:075157567b0c 200 void snmp_inc_snmpinbadversions(void);
nxpfan 0:075157567b0c 201 void snmp_inc_snmpinbadcommunitynames(void);
nxpfan 0:075157567b0c 202 void snmp_inc_snmpinbadcommunityuses(void);
nxpfan 0:075157567b0c 203 void snmp_inc_snmpinasnparseerrs(void);
nxpfan 0:075157567b0c 204 void snmp_inc_snmpintoobigs(void);
nxpfan 0:075157567b0c 205 void snmp_inc_snmpinnosuchnames(void);
nxpfan 0:075157567b0c 206 void snmp_inc_snmpinbadvalues(void);
nxpfan 0:075157567b0c 207 void snmp_inc_snmpinreadonlys(void);
nxpfan 0:075157567b0c 208 void snmp_inc_snmpingenerrs(void);
nxpfan 0:075157567b0c 209 void snmp_add_snmpintotalreqvars(u8_t value);
nxpfan 0:075157567b0c 210 void snmp_add_snmpintotalsetvars(u8_t value);
nxpfan 0:075157567b0c 211 void snmp_inc_snmpingetrequests(void);
nxpfan 0:075157567b0c 212 void snmp_inc_snmpingetnexts(void);
nxpfan 0:075157567b0c 213 void snmp_inc_snmpinsetrequests(void);
nxpfan 0:075157567b0c 214 void snmp_inc_snmpingetresponses(void);
nxpfan 0:075157567b0c 215 void snmp_inc_snmpintraps(void);
nxpfan 0:075157567b0c 216 void snmp_inc_snmpouttoobigs(void);
nxpfan 0:075157567b0c 217 void snmp_inc_snmpoutnosuchnames(void);
nxpfan 0:075157567b0c 218 void snmp_inc_snmpoutbadvalues(void);
nxpfan 0:075157567b0c 219 void snmp_inc_snmpoutgenerrs(void);
nxpfan 0:075157567b0c 220 void snmp_inc_snmpoutgetrequests(void);
nxpfan 0:075157567b0c 221 void snmp_inc_snmpoutgetnexts(void);
nxpfan 0:075157567b0c 222 void snmp_inc_snmpoutsetrequests(void);
nxpfan 0:075157567b0c 223 void snmp_inc_snmpoutgetresponses(void);
nxpfan 0:075157567b0c 224 void snmp_inc_snmpouttraps(void);
nxpfan 0:075157567b0c 225 void snmp_get_snmpgrpid_ptr(struct snmp_obj_id **oid);
nxpfan 0:075157567b0c 226 void snmp_set_snmpenableauthentraps(u8_t *value);
nxpfan 0:075157567b0c 227 void snmp_get_snmpenableauthentraps(u8_t *value);
nxpfan 0:075157567b0c 228
nxpfan 0:075157567b0c 229 /* LWIP_SNMP support not available */
nxpfan 0:075157567b0c 230 /* define everything to be empty */
nxpfan 0:075157567b0c 231 #else
nxpfan 0:075157567b0c 232
nxpfan 0:075157567b0c 233 /* system */
nxpfan 0:075157567b0c 234 #define snmp_set_sysdesr(str, len)
nxpfan 0:075157567b0c 235 #define snmp_set_sysobjid(oid);
nxpfan 0:075157567b0c 236 #define snmp_get_sysobjid_ptr(oid)
nxpfan 0:075157567b0c 237 #define snmp_inc_sysuptime()
nxpfan 0:075157567b0c 238 #define snmp_add_sysuptime(value)
nxpfan 0:075157567b0c 239 #define snmp_get_sysuptime(value)
nxpfan 0:075157567b0c 240 #define snmp_set_syscontact(ocstr, ocstrlen);
nxpfan 0:075157567b0c 241 #define snmp_set_sysname(ocstr, ocstrlen);
nxpfan 0:075157567b0c 242 #define snmp_set_syslocation(ocstr, ocstrlen);
nxpfan 0:075157567b0c 243
nxpfan 0:075157567b0c 244 /* network interface */
nxpfan 0:075157567b0c 245 #define snmp_add_ifinoctets(ni,value)
nxpfan 0:075157567b0c 246 #define snmp_inc_ifinucastpkts(ni)
nxpfan 0:075157567b0c 247 #define snmp_inc_ifinnucastpkts(ni)
nxpfan 0:075157567b0c 248 #define snmp_inc_ifindiscards(ni)
nxpfan 0:075157567b0c 249 #define snmp_add_ifoutoctets(ni,value)
nxpfan 0:075157567b0c 250 #define snmp_inc_ifoutucastpkts(ni)
nxpfan 0:075157567b0c 251 #define snmp_inc_ifoutnucastpkts(ni)
nxpfan 0:075157567b0c 252 #define snmp_inc_ifoutdiscards(ni)
nxpfan 0:075157567b0c 253 #define snmp_inc_iflist()
nxpfan 0:075157567b0c 254 #define snmp_dec_iflist()
nxpfan 0:075157567b0c 255
nxpfan 0:075157567b0c 256 /* ARP */
nxpfan 0:075157567b0c 257 #define snmp_insert_arpidx_tree(ni,ip)
nxpfan 0:075157567b0c 258 #define snmp_delete_arpidx_tree(ni,ip)
nxpfan 0:075157567b0c 259
nxpfan 0:075157567b0c 260 /* IP */
nxpfan 0:075157567b0c 261 #define snmp_inc_ipinreceives()
nxpfan 0:075157567b0c 262 #define snmp_inc_ipinhdrerrors()
nxpfan 0:075157567b0c 263 #define snmp_inc_ipinaddrerrors()
nxpfan 0:075157567b0c 264 #define snmp_inc_ipforwdatagrams()
nxpfan 0:075157567b0c 265 #define snmp_inc_ipinunknownprotos()
nxpfan 0:075157567b0c 266 #define snmp_inc_ipindiscards()
nxpfan 0:075157567b0c 267 #define snmp_inc_ipindelivers()
nxpfan 0:075157567b0c 268 #define snmp_inc_ipoutrequests()
nxpfan 0:075157567b0c 269 #define snmp_inc_ipoutdiscards()
nxpfan 0:075157567b0c 270 #define snmp_inc_ipoutnoroutes()
nxpfan 0:075157567b0c 271 #define snmp_inc_ipreasmreqds()
nxpfan 0:075157567b0c 272 #define snmp_inc_ipreasmoks()
nxpfan 0:075157567b0c 273 #define snmp_inc_ipreasmfails()
nxpfan 0:075157567b0c 274 #define snmp_inc_ipfragoks()
nxpfan 0:075157567b0c 275 #define snmp_inc_ipfragfails()
nxpfan 0:075157567b0c 276 #define snmp_inc_ipfragcreates()
nxpfan 0:075157567b0c 277 #define snmp_inc_iproutingdiscards()
nxpfan 0:075157567b0c 278 #define snmp_insert_ipaddridx_tree(ni)
nxpfan 0:075157567b0c 279 #define snmp_delete_ipaddridx_tree(ni)
nxpfan 0:075157567b0c 280 #define snmp_insert_iprteidx_tree(dflt, ni)
nxpfan 0:075157567b0c 281 #define snmp_delete_iprteidx_tree(dflt, ni)
nxpfan 0:075157567b0c 282
nxpfan 0:075157567b0c 283 /* ICMP */
nxpfan 0:075157567b0c 284 #define snmp_inc_icmpinmsgs()
nxpfan 0:075157567b0c 285 #define snmp_inc_icmpinerrors()
nxpfan 0:075157567b0c 286 #define snmp_inc_icmpindestunreachs()
nxpfan 0:075157567b0c 287 #define snmp_inc_icmpintimeexcds()
nxpfan 0:075157567b0c 288 #define snmp_inc_icmpinparmprobs()
nxpfan 0:075157567b0c 289 #define snmp_inc_icmpinsrcquenchs()
nxpfan 0:075157567b0c 290 #define snmp_inc_icmpinredirects()
nxpfan 0:075157567b0c 291 #define snmp_inc_icmpinechos()
nxpfan 0:075157567b0c 292 #define snmp_inc_icmpinechoreps()
nxpfan 0:075157567b0c 293 #define snmp_inc_icmpintimestamps()
nxpfan 0:075157567b0c 294 #define snmp_inc_icmpintimestampreps()
nxpfan 0:075157567b0c 295 #define snmp_inc_icmpinaddrmasks()
nxpfan 0:075157567b0c 296 #define snmp_inc_icmpinaddrmaskreps()
nxpfan 0:075157567b0c 297 #define snmp_inc_icmpoutmsgs()
nxpfan 0:075157567b0c 298 #define snmp_inc_icmpouterrors()
nxpfan 0:075157567b0c 299 #define snmp_inc_icmpoutdestunreachs()
nxpfan 0:075157567b0c 300 #define snmp_inc_icmpouttimeexcds()
nxpfan 0:075157567b0c 301 #define snmp_inc_icmpoutparmprobs()
nxpfan 0:075157567b0c 302 #define snmp_inc_icmpoutsrcquenchs()
nxpfan 0:075157567b0c 303 #define snmp_inc_icmpoutredirects()
nxpfan 0:075157567b0c 304 #define snmp_inc_icmpoutechos()
nxpfan 0:075157567b0c 305 #define snmp_inc_icmpoutechoreps()
nxpfan 0:075157567b0c 306 #define snmp_inc_icmpouttimestamps()
nxpfan 0:075157567b0c 307 #define snmp_inc_icmpouttimestampreps()
nxpfan 0:075157567b0c 308 #define snmp_inc_icmpoutaddrmasks()
nxpfan 0:075157567b0c 309 #define snmp_inc_icmpoutaddrmaskreps()
nxpfan 0:075157567b0c 310 /* TCP */
nxpfan 0:075157567b0c 311 #define snmp_inc_tcpactiveopens()
nxpfan 0:075157567b0c 312 #define snmp_inc_tcppassiveopens()
nxpfan 0:075157567b0c 313 #define snmp_inc_tcpattemptfails()
nxpfan 0:075157567b0c 314 #define snmp_inc_tcpestabresets()
nxpfan 0:075157567b0c 315 #define snmp_inc_tcpinsegs()
nxpfan 0:075157567b0c 316 #define snmp_inc_tcpoutsegs()
nxpfan 0:075157567b0c 317 #define snmp_inc_tcpretranssegs()
nxpfan 0:075157567b0c 318 #define snmp_inc_tcpinerrs()
nxpfan 0:075157567b0c 319 #define snmp_inc_tcpoutrsts()
nxpfan 0:075157567b0c 320
nxpfan 0:075157567b0c 321 /* UDP */
nxpfan 0:075157567b0c 322 #define snmp_inc_udpindatagrams()
nxpfan 0:075157567b0c 323 #define snmp_inc_udpnoports()
nxpfan 0:075157567b0c 324 #define snmp_inc_udpinerrors()
nxpfan 0:075157567b0c 325 #define snmp_inc_udpoutdatagrams()
nxpfan 0:075157567b0c 326 #define snmp_insert_udpidx_tree(pcb)
nxpfan 0:075157567b0c 327 #define snmp_delete_udpidx_tree(pcb)
nxpfan 0:075157567b0c 328
nxpfan 0:075157567b0c 329 /* SNMP */
nxpfan 0:075157567b0c 330 #define snmp_inc_snmpinpkts()
nxpfan 0:075157567b0c 331 #define snmp_inc_snmpoutpkts()
nxpfan 0:075157567b0c 332 #define snmp_inc_snmpinbadversions()
nxpfan 0:075157567b0c 333 #define snmp_inc_snmpinbadcommunitynames()
nxpfan 0:075157567b0c 334 #define snmp_inc_snmpinbadcommunityuses()
nxpfan 0:075157567b0c 335 #define snmp_inc_snmpinasnparseerrs()
nxpfan 0:075157567b0c 336 #define snmp_inc_snmpintoobigs()
nxpfan 0:075157567b0c 337 #define snmp_inc_snmpinnosuchnames()
nxpfan 0:075157567b0c 338 #define snmp_inc_snmpinbadvalues()
nxpfan 0:075157567b0c 339 #define snmp_inc_snmpinreadonlys()
nxpfan 0:075157567b0c 340 #define snmp_inc_snmpingenerrs()
nxpfan 0:075157567b0c 341 #define snmp_add_snmpintotalreqvars(value)
nxpfan 0:075157567b0c 342 #define snmp_add_snmpintotalsetvars(value)
nxpfan 0:075157567b0c 343 #define snmp_inc_snmpingetrequests()
nxpfan 0:075157567b0c 344 #define snmp_inc_snmpingetnexts()
nxpfan 0:075157567b0c 345 #define snmp_inc_snmpinsetrequests()
nxpfan 0:075157567b0c 346 #define snmp_inc_snmpingetresponses()
nxpfan 0:075157567b0c 347 #define snmp_inc_snmpintraps()
nxpfan 0:075157567b0c 348 #define snmp_inc_snmpouttoobigs()
nxpfan 0:075157567b0c 349 #define snmp_inc_snmpoutnosuchnames()
nxpfan 0:075157567b0c 350 #define snmp_inc_snmpoutbadvalues()
nxpfan 0:075157567b0c 351 #define snmp_inc_snmpoutgenerrs()
nxpfan 0:075157567b0c 352 #define snmp_inc_snmpoutgetrequests()
nxpfan 0:075157567b0c 353 #define snmp_inc_snmpoutgetnexts()
nxpfan 0:075157567b0c 354 #define snmp_inc_snmpoutsetrequests()
nxpfan 0:075157567b0c 355 #define snmp_inc_snmpoutgetresponses()
nxpfan 0:075157567b0c 356 #define snmp_inc_snmpouttraps()
nxpfan 0:075157567b0c 357 #define snmp_get_snmpgrpid_ptr(oid)
nxpfan 0:075157567b0c 358 #define snmp_set_snmpenableauthentraps(value)
nxpfan 0:075157567b0c 359 #define snmp_get_snmpenableauthentraps(value)
nxpfan 0:075157567b0c 360
nxpfan 0:075157567b0c 361 #endif /* LWIP_SNMP */
nxpfan 0:075157567b0c 362
nxpfan 0:075157567b0c 363 #ifdef __cplusplus
nxpfan 0:075157567b0c 364 }
nxpfan 0:075157567b0c 365 #endif
nxpfan 0:075157567b0c 366
nxpfan 0:075157567b0c 367 #endif /* __LWIP_SNMP_H__ */