Go to the documentation of this file.
31 #ifndef _MIB2_MODULE_H
32 #define _MIB2_MODULE_H
43 #define MIB2_SUPPORT DISABLED
44 #elif (MIB2_SUPPORT != ENABLED && MIB2_SUPPORT != DISABLED)
45 #error MIB2_SUPPORT parameter is not valid
49 #ifndef MIB2_SYS_GROUP_SUPPORT
50 #define MIB2_SYS_GROUP_SUPPORT ENABLED
51 #elif (MIB2_SYS_GROUP_SUPPORT != ENABLED && MIB2_SYS_GROUP_SUPPORT != DISABLED)
52 #error MIB2_SYS_GROUP_SUPPORT parameter is not valid
56 #ifndef MIB2_IF_GROUP_SUPPORT
57 #define MIB2_IF_GROUP_SUPPORT ENABLED
58 #elif (MIB2_IF_GROUP_SUPPORT != ENABLED && MIB2_IF_GROUP_SUPPORT != DISABLED)
59 #error MIB2_IF_GROUP_SUPPORT parameter is not valid
63 #ifndef MIB2_IP_GROUP_SUPPORT
64 #define MIB2_IP_GROUP_SUPPORT ENABLED
65 #elif (MIB2_IP_GROUP_SUPPORT != ENABLED && MIB2_IP_GROUP_SUPPORT != DISABLED)
66 #error MIB2_IP_GROUP_SUPPORT parameter is not valid
70 #ifndef MIB2_ICMP_GROUP_SUPPORT
71 #define MIB2_ICMP_GROUP_SUPPORT ENABLED
72 #elif (MIB2_ICMP_GROUP_SUPPORT != ENABLED && MIB2_ICMP_GROUP_SUPPORT != DISABLED)
73 #errorMIB2_ICMP_GROUP_SUPPORT parameter is not valid
77 #ifndef MIB2_TCP_GROUP_SUPPORT
78 #define MIB2_TCP_GROUP_SUPPORT ENABLED
79 #elif (MIB2_TCP_GROUP_SUPPORT != ENABLED && MIB2_TCP_GROUP_SUPPORT != DISABLED)
80 #error MIB2_TCP_GROUP_SUPPORT parameter is not valid
84 #ifndef MIB2_UDP_GROUP_SUPPORT
85 #define MIB2_UDP_GROUP_SUPPORT ENABLED
86 #elif (MIB2_UDP_GROUP_SUPPORT != ENABLED && MIB2_UDP_GROUP_SUPPORT != DISABLED)
87 #error MIB2_UDP_GROUP_SUPPORT parameter is not valid
91 #ifndef MIB2_SNMP_GROUP_SUPPORT
92 #define MIB2_SNMP_GROUP_SUPPORT ENABLED
93 #elif (MIB2_SNMP_GROUP_SUPPORT != ENABLED && MIB2_SNMP_GROUP_SUPPORT != DISABLED)
94 #error MIB2_SNMP_GROUP_SUPPORT parameter is not valid
98 #ifndef MIB2_SYS_DESCR_SIZE
99 #define MIB2_SYS_DESCR_SIZE 16
100 #elif (MIB2_SYS_DESCR_SIZE < 0)
101 #error MIB2_SYS_DESCR_SIZE parameter is not valid
105 #ifndef MIB2_SYS_OBJECT_ID_SIZE
106 #define MIB2_SYS_OBJECT_ID_SIZE 16
107 #elif (MIB2_SYS_OBJECT_ID_SIZE < 0)
108 #error MIB2_SYS_OBJECT_ID_SIZE parameter is not valid
112 #ifndef MIB2_SYS_CONTACT_SIZE
113 #define MIB2_SYS_CONTACT_SIZE 16
114 #elif (MIB2_SYS_CONTACT_SIZE < 0)
115 #error MIB2_SYS_CONTACT_SIZE parameter is not valid
119 #ifndef MIB2_SYS_NAME_SIZE
120 #define MIB2_SYS_NAME_SIZE 16
121 #elif (MIB2_SYS_NAME_SIZE < 0)
122 #error MIB2_SYS_NAME_SIZE parameter is not valid
126 #ifndef MIB2_SYS_LOCATION_SIZE
127 #define MIB2_SYS_LOCATION_SIZE 16
128 #elif (MIB2_SYS_LOCATION_SIZE < 0)
129 #error MIB2_SYS_LOCATION_SIZE parameter is not valid
133 #ifndef MIB2_IF_SPECIFIC_SIZE
134 #define MIB2_IF_SPECIFIC_SIZE 16
135 #elif (MIB2_IF_SPECIFIC_SIZE < 1)
136 #error MIB2_IF_SPECIFIC_SIZE parameter is not valid
140 #ifndef MIB2_PHYS_ADDRESS_SIZE
141 #define MIB2_PHYS_ADDRESS_SIZE 6
142 #elif (MIB2_PHYS_ADDRESS_SIZE < 6)
143 #error MIB2_PHYS_ADDRESS_SIZE parameter is not valid
147 #ifndef MIB2_IP_ADDRESS_SIZE
148 #define MIB2_IP_ADDRESS_SIZE 4
149 #elif (MIB2_IP_ADDRESS_SIZE != 4)
150 #error MIB2_IP_ADDRESS_SIZE parameter is not valid
154 #if (MIB2_SUPPORT == ENABLED && MIB2_IF_GROUP_SUPPORT == ENABLED)
155 #define MIB2_IF_SET_TIME_TICKS(name, value) mib2Base.ifGroup.name = value
156 #define MIB2_IF_INC_COUNTER32(name, value) mib2Base.ifGroup.name += value
158 #define MIB2_IF_SET_TIME_TICKS(name, value)
159 #define MIB2_IF_INC_COUNTER32(name, value)
163 #if (MIB2_SUPPORT == ENABLED && MIB2_IP_GROUP_SUPPORT == ENABLED)
164 #define MIB2_IP_INC_COUNTER32(name, value) mib2Base.ipGroup.name += value
166 #define MIB2_IP_INC_COUNTER32(name, value)
170 #if (MIB2_SUPPORT == ENABLED && MIB2_ICMP_GROUP_SUPPORT == ENABLED)
171 #define MIB2_ICMP_INC_COUNTER32(name, value) mib2Base.icmpGroup.name += value
173 #define MIB2_ICMP_INC_COUNTER32(name, value)
177 #if (MIB2_SUPPORT == ENABLED && MIB2_TCP_GROUP_SUPPORT == ENABLED)
178 #define MIB2_TCP_INC_COUNTER32(name, value) mib2Base.tcpGroup.name += value
180 #define MIB2_TCP_INC_COUNTER32(name, value)
184 #if (MIB2_SUPPORT == ENABLED && MIB2_UDP_GROUP_SUPPORT == ENABLED)
185 #define MIB2_UDP_INC_COUNTER32(name, value) mib2Base.udpGroup.name += value
187 #define MIB2_UDP_INC_COUNTER32(name, value)
191 #if (MIB2_SUPPORT == ENABLED && MIB2_SNMP_GROUP_SUPPORT == ENABLED)
192 #define MIB2_SNMP_INC_COUNTER32(name, value) mib2Base.snmpGroup.name += value
194 #define MIB2_SNMP_INC_COUNTER32(name, value)
341 #if (MIB2_SYS_DESCR_SIZE > 0)
345 #if (MIB2_SYS_OBJECT_ID_SIZE > 0)
350 #if (MIB2_SYS_CONTACT_SIZE > 0)
354 #if (MIB2_SYS_NAME_SIZE > 0)
358 #if (MIB2_SYS_LOCATION_SIZE > 0)
543 #if (MIB2_SYS_GROUP_SUPPORT == ENABLED)
546 #if (MIB2_IF_GROUP_SUPPORT == ENABLED)
549 #if (MIB2_IP_GROUP_SUPPORT == ENABLED)
552 #if (MIB2_ICMP_GROUP_SUPPORT == ENABLED)
555 #if (MIB2_TCP_GROUP_SUPPORT == ENABLED)
558 #if (MIB2_UDP_GROUP_SUPPORT == ENABLED)
561 #if (MIB2_SNMP_GROUP_SUPPORT == ENABLED)
uint32_t icmpInDestUnreachs
@ MIB2_TCP_CONN_STATE_FIN_WAIT_2
@ MIB2_IF_TYPE_PROP_PTP_SERIAL
Mib2IfAdminStatus
The desired state of the interface.
uint32_t snmpInBadVersions
@ MIB2_SYS_SERVICE_PHYSICAL
#define MIB2_SYS_LOCATION_SIZE
uint32_t icmpOutAddrMasks
uint32_t icmpOutTimestampReps
@ MIB2_TCP_CONN_STATE_CLOSE_WAIT
#define MIB2_SYS_DESCR_SIZE
@ MIB2_SYS_SERVICE_APPLICATIONS
@ MIB2_TCP_RTO_ALGORITHM_OTHER
@ MIB2_IF_TYPE_ETHERNET_CSMACD
Mib2IpForwarding
IP forwarding state.
@ MIB2_TCP_CONN_STATE_CLOSING
#define MIB2_SYS_NAME_SIZE
int32_t snmpEnableAuthenTraps
uint32_t snmpInTotalReqVars
Mib2EnableAuthenTraps
Enabled/disabled state of authentication failure traps.
uint32_t snmpInGetResponses
#define NET_INTERFACE_COUNT
@ MIB2_IF_TYPE_IEEE_802_15_4
uint32_t icmpInTimestamps
@ MIB2_IP_NET_TO_MEDIA_TYPE_INVALID
@ MIB2_IP_FORWARDING_DISABLED
uint32_t snmpInTotalSetVars
Mib2IfType
Interface types.
uint32_t icmpOutTimeExcds
@ MIB2_TCP_CONN_STATE_LISTEN
uint32_t snmpInASNParseErrs
@ MIB2_TCP_CONN_STATE_DELETE_TCB
uint32_t icmpOutAddrMaskReps
uint32_t snmpInNoSuchNames
@ MIB2_IF_ADMIN_STATUS_UP
uint32_t snmpOutSetRequests
uint32_t icmpOutDestUnreachs
@ MIB2_SYS_SERVICE_INTERNET
uint32_t icmpInSrcQuenchs
@ MIB2_TCP_CONN_STATE_FIN_WAIT_1
@ MIB2_AUTHEN_TRAPS_DISABLED
@ MIB2_IF_OPER_STATUS_DOWN
@ MIB2_AUTHEN_TRAPS_ENABLED
#define MIB2_SYS_CONTACT_SIZE
Mib2Base mib2Base
MIB-II base.
@ MIB2_TCP_CONN_STATE_LAST_ACK
uint32_t ipInUnknownProtos
uint32_t icmpInTimestampReps
uint32_t icmpOutTimestamps
Mib2IfOperStatus
The operational state of the interface.
@ MIB2_IF_ADMIN_STATUS_DOWN
@ MIB2_IP_FORWARDING_ENABLED
uint32_t snmpInBadCommunityUses
Mib2TcpConnState
TCP connection states.
@ MIB2_IP_NET_TO_MEDIA_TYPE_OTHER
@ MIB2_IF_TYPE_SOFT_LOOPBACK
uint32_t ifInUnknownProtos
uint32_t icmpOutRedirects
@ MIB2_SYS_SERVICE_DATALINK
@ MIB2_TCP_CONN_STATE_CLOSED
uint32_t snmpOutNoSuchNames
uint32_t snmpOutGetRequests
uint32_t icmpInAddrMaskReps
Common definitions for MIB modules.
TCP (Transmission Control Protocol)
@ MIB2_TCP_RTO_ALGORITHM_CONSTANT
uint32_t snmpOutGetResponses
@ MIB2_SYS_SERVICE_END_TO_END
UDP (User Datagram Protocol)
@ MIB2_TCP_RTO_ALGORITHM_VANJ
uint32_t icmpOutParmProbs
Mib2TcpRtoAlgorithm
RTO calculation algorithm.
@ MIB2_IF_ADMIN_STATUS_TESTING
uint32_t icmpOutSrcQuenchs
const MibModule mib2Module
MIB-II module.
@ MIB2_TCP_CONN_STATE_TIME_WAIT
Mib2IpNetToMediaType
Type of mapping.
#define MIB2_SYS_OBJECT_ID_SIZE
@ MIB2_IF_OPER_STATUS_TESTING
IPv4 (Internet Protocol Version 4)
#define MIB2_IF_SPECIFIC_SIZE
@ MIB2_IF_TYPE_IEEE_802_11
@ MIB2_TCP_CONN_STATE_SYN_SENT
uint32_t snmpInSetRequests
uint32_t snmpInGetRequests
const MibObject mib2Objects[]
MIB-II objects.
@ MIB2_TCP_CONN_STATE_ESTABLISHED
uint32_t snmpInBadCommunityNames
@ MIB2_IP_NET_TO_MEDIA_TYPE_DYNAMIC
@ MIB2_IP_NET_TO_MEDIA_TYPE_STATIC
@ MIB2_TCP_RTO_ALGORITHM_RSRE
@ MIB2_TCP_CONN_STATE_SYN_RECEIVED
Mib2SysService
System services.
uint32_t ipRoutingDiscards
uint32_t snmpOutBadValues