lwIP  2.0.2
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
 

Detailed Description

Macro Definition Documentation

◆ MIB2_INIT_NETIF

#define MIB2_INIT_NETIF (   netif,
  type,
  speed 
)
Value:
do { \
(netif)->link_type = (type); \
(netif)->link_speed = (speed);\
(netif)->ts = 0; \
(netif)->mib2_counters.ifinoctets = 0; \
(netif)->mib2_counters.ifinucastpkts = 0; \
(netif)->mib2_counters.ifinnucastpkts = 0; \
(netif)->mib2_counters.ifindiscards = 0; \
(netif)->mib2_counters.ifinerrors = 0; \
(netif)->mib2_counters.ifinunknownprotos = 0; \
(netif)->mib2_counters.ifoutoctets = 0; \
(netif)->mib2_counters.ifoutucastpkts = 0; \
(netif)->mib2_counters.ifoutnucastpkts = 0; \
(netif)->mib2_counters.ifoutdiscards = 0; \
(netif)->mib2_counters.ifouterrors = 0; } while(0)
Definition: netif.h:225
u8_t type
Definition: pbuf.h:162

Init MIB2 statistic counters in netif

Parameters
netifNetif to init
typeone of enum snmp_ifType
speedyour link speed here (units: bits per second)

◆ MIB2_STATS_NETIF_ADD

#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)

◆ MIB2_STATS_NETIF_INC

#define MIB2_STATS_NETIF_INC (   n,
 
)    do { ++(n)->mib2_counters.x; } while(0)

Increment stats member for SNMP MIB2 stats (struct stats_mib2_netif_ctrs)

Enumeration Type Documentation

◆ snmp_ifType

See also
RFC1213, "MIB-II, 6. Definitions"