|
lwIP
2.2.1
Lightweight IP stack
|
Data Structures | |
| struct | stats_mib2_netif_ctrs |
Macros | |
| #define | MIB2_STATS_NETIF_INC(n, x) do { ++(n)->mib2_counters.x; } while(0) |
| #define | MIB2_STATS_NETIF_ADD(n, x, val) do { (n)->mib2_counters.x += (val); } while(0) |
| #define | MIB2_INIT_NETIF(netif, type, speed) |
Enumerations | |
| enum | snmp_ifType |
| #define MIB2_INIT_NETIF | ( | netif, | |
| type, | |||
| speed | |||
| ) |
Init MIB2 statistic counters in netif
| netif | Netif to init |
| type | one of enum snmp_ifType |
| speed | your link speed here (units: bits per second) |
| #define MIB2_STATS_NETIF_ADD | ( | n, | |
| x, | |||
| val | |||
| ) | do { (n)->mib2_counters.x += (val); } while(0) |
Add value to stats member for SNMP MIB2 stats (struct stats_mib2_netif_ctrs)
| #define MIB2_STATS_NETIF_INC | ( | n, | |
| x | |||
| ) | do { ++(n)->mib2_counters.x; } while(0) |
Increment stats member for SNMP MIB2 stats (struct stats_mib2_netif_ctrs)
| enum snmp_ifType |