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