mib2_module.h
Go to the documentation of this file.
1 /**
2  * @file mib2_module.h
3  * @brief MIB-II module
4  *
5  * @section License
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  *
9  * Copyright (C) 2010-2019 Oryx Embedded SARL. All rights reserved.
10  *
11  * This file is part of CycloneTCP Open.
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software Foundation,
25  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26  *
27  * @author Oryx Embedded SARL (www.oryx-embedded.com)
28  * @version 1.9.6
29  **/
30 
31 #ifndef _MIB2_MODULE_H
32 #define _MIB2_MODULE_H
33 
34 //Dependencies
35 #include "core/net.h"
36 #include "core/udp.h"
37 #include "core/tcp.h"
38 #include "ipv4/ipv4.h"
39 #include "mibs/mib_common.h"
40 
41 //MIB-II module support
42 #ifndef MIB2_SUPPORT
43  #define MIB2_SUPPORT DISABLED
44 #elif (MIB2_SUPPORT != ENABLED && MIB2_SUPPORT != DISABLED)
45  #error MIB2_SUPPORT parameter is not valid
46 #endif
47 
48 //System group support
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
53 #endif
54 
55 //Interface group support
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
60 #endif
61 
62 //IP group support
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
67 #endif
68 
69 //ICMP group support
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
74 #endif
75 
76 //TCP group support
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
81 #endif
82 
83 //UDP group support
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
88 #endif
89 
90 //SNMP group support
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
95 #endif
96 
97 //Size of sysDescr object
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
102 #endif
103 
104 //Size of sysObjectID object
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
109 #endif
110 
111 //Size of sysContact object
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
116 #endif
117 
118 //Size of sysName object
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
123 #endif
124 
125 //Size of sysLocation object
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
130 #endif
131 
132 //Size of ifSpecific object
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
137 #endif
138 
139 //Size of PhysAddress data type
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
144 #endif
145 
146 //Size of IpAddress data type
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
151 #endif
152 
153 //Macro definitions
154 #if (MIB2_SUPPORT == ENABLED)
155  #define MIB2_SET_TIME_TICKS(name, value) mib2Base.name = value
156  #define MIB2_INC_COUNTER32(name, value) mib2Base.name += value
157 #else
158  #define MIB2_SET_TIME_TICKS(name, value)
159  #define MIB2_INC_COUNTER32(name, value)
160 #endif
161 
162 //C++ guard
163 #ifdef __cplusplus
164 extern "C" {
165 #endif
166 
167 
168 /**
169  * @brief System services
170  **/
171 
172 typedef enum
173 {
180 
181 
182 /**
183  * @brief Interface types
184  **/
185 
186 typedef enum
187 {
199 } Mib2IfType;
200 
201 
202 /**
203  * @brief The desired state of the interface
204  **/
205 
206 typedef enum
207 {
212 
213 
214 /**
215  * @brief The operational state of the interface
216  **/
217 
218 typedef enum
219 {
224 
225 
226 /**
227  * @brief IP forwarding state
228  **/
229 
230 typedef enum
231 {
235 
236 
237 /**
238  * @brief Type of mapping
239  **/
240 
241 typedef enum
242 {
248 
249 
250 /**
251  * @brief RTO calculation algorithm
252  **/
253 
254 typedef enum
255 {
261 
262 
263 /**
264  * @brief TCP connection states
265  **/
266 
267 typedef enum
268 {
282 
283 
284 /**
285  * @brief System group
286  **/
287 
288 typedef struct
289 {
290 #if (MIB2_SYS_DESCR_SIZE > 0)
292  size_t sysDescrLen;
293 #endif
294 #if (MIB2_SYS_OBJECT_ID_SIZE > 0)
295  uint8_t sysObjectID[MIB2_SYS_OBJECT_ID_SIZE];
297 #endif
298  uint32_t sysUpTime;
299 #if (MIB2_SYS_CONTACT_SIZE > 0)
302 #endif
303 #if (MIB2_SYS_NAME_SIZE > 0)
305  size_t sysNameLen;
306 #endif
307 #if (MIB2_SYS_LOCATION_SIZE > 0)
310 #endif
311  int32_t sysServices;
312 } Mib2SysGroup;
313 
314 
315 /**
316  * @brief Interfaces table entry
317  **/
318 
319 typedef struct
320 {
321  uint32_t ifLastChange;
322  uint32_t ifInOctets;
323  uint32_t ifInUcastPkts;
324  uint32_t ifInNUcastPkts;
325  uint32_t ifInDiscards;
326  uint32_t ifInErrors;
328  uint32_t ifOutOctets;
329  uint32_t ifOutUcastPkts;
330  uint32_t ifOutNUcastPkts;
331  uint32_t ifOutDiscards;
332  uint32_t ifOutErrors;
333  uint32_t ifOutQLen;
334  uint8_t ifSpecific[MIB2_IF_SPECIFIC_SIZE];
336 } Mib2IfEntry;
337 
338 
339 /**
340  * @brief Interfaces group
341  **/
342 
343 typedef struct
344 {
345  int32_t ifNumber;
347 } Mib2IfGroup;
348 
349 
350 /**
351  * @brief IP group
352  **/
353 
354 typedef struct
355 {
356  int32_t ipForwarding;
357  int32_t ipDefaultTTL;
358  uint32_t ipInReceives;
359  uint32_t ipInHdrErrors;
360  uint32_t ipInAddrErrors;
361  uint32_t ipForwDatagrams;
363  uint32_t ipInDiscards;
364  uint32_t ipInDelivers;
365  uint32_t ipOutRequests;
366  uint32_t ipOutDiscards;
367  uint32_t ipOutNoRoutes;
368  int32_t ipReasmTimeout;
369  uint32_t ipReasmReqds;
370  uint32_t ipReasmOKs;
371  uint32_t ipReasmFails;
372  uint32_t ipFragOKs;
373  uint32_t ipFragFails;
374  uint32_t ipFragCreates;
376 } Mib2IpGroup;
377 
378 
379 /**
380  * @brief ICMP group
381  **/
382 
383 typedef struct
384 {
385  uint32_t icmpInMsgs;
386  uint32_t icmpInErrors;
388  uint32_t icmpInTimeExcds;
389  uint32_t icmpInParmProbs;
391  uint32_t icmpInRedirects;
392  uint32_t icmpInEchos;
393  uint32_t icmpInEchoReps;
396  uint32_t icmpInAddrMasks;
398  uint32_t icmpOutMsgs;
399  uint32_t icmpOutErrors;
405  uint32_t icmpOutEchos;
406  uint32_t icmpOutEchoReps;
411 } Mib2IcmpGroup;
412 
413 
414 /**
415  * @brief TCP group
416  **/
417 
418 typedef struct
419 {
421  int32_t tcpRtoMin;
422  int32_t tcpRtoMax;
423  int32_t tcpMaxConn;
424  uint32_t tcpActiveOpens;
425  uint32_t tcpPassiveOpens;
426  uint32_t tcpAttemptFails;
427  uint32_t tcpEstabResets;
428  uint32_t tcpInSegs;
429  uint32_t tcpOutSegs;
430  uint32_t tcpRetransSegs;
431  uint32_t tcpInErrs;
432  uint32_t tcpOutRsts;
433 } Mib2TcpGroup;
434 
435 
436 /**
437  * @brief UDP group
438  **/
439 
440 typedef struct
441 {
442  uint32_t udpInDatagrams;
443  uint32_t udpNoPorts;
444  uint32_t udpInErrors;
445  uint32_t udpOutDatagrams;
446 } Mib2UdpGroup;
447 
448 
449 /**
450  * @brief SNMP group
451  **/
452 
453 typedef struct
454 {
455  uint32_t snmpInPkts;
456  uint32_t snmpOutPkts;
461  uint32_t snmpInTooBigs;
463  uint32_t snmpInBadValues;
464  uint32_t snmpInReadOnlys;
465  uint32_t snmpInGenErrs;
469  uint32_t snmpInGetNexts;
472  uint32_t snmpInTraps;
473  uint32_t snmpOutTooBigs;
476  uint32_t snmpOutGenErrs;
478  uint32_t snmpOutGetNexts;
481  uint32_t snmpOutTraps;
483 } Mib2SnmpGroup;
484 
485 
486 /**
487  * @brief MIB-II base
488  **/
489 
490 typedef struct
491 {
494 #if (IPV4_SUPPORT == ENABLED)
497 #endif
498 #if (TCP_SUPPORT == ENABLED)
500 #endif
501 #if (UDP_SUPPORT == ENABLED)
503 #endif
505 } Mib2Base;
506 
507 
508 //MIB-II related constants
509 extern Mib2Base mib2Base;
510 extern const MibObject mib2Objects[];
511 extern const MibModule mib2Module;
512 
513 //C++ guard
514 #ifdef __cplusplus
515 }
516 #endif
517 
518 #endif
SNMP group.
Definition: mib2_module.h:453
@ MIB2_IF_TYPE_OTHER
Definition: mib2_module.h:188
Interfaces table entry.
Definition: mib2_module.h:319
uint32_t icmpInDestUnreachs
Definition: mib2_module.h:387
uint32_t ipInAddrErrors
Definition: mib2_module.h:360
uint32_t icmpOutEchoReps
Definition: mib2_module.h:406
uint32_t icmpOutErrors
Definition: mib2_module.h:399
uint32_t snmpInTooBigs
Definition: mib2_module.h:461
@ MIB2_TCP_CONN_STATE_FIN_WAIT_2
Definition: mib2_module.h:275
uint32_t ipOutDiscards
Definition: mib2_module.h:366
@ MIB2_IF_TYPE_PROP_PTP_SERIAL
Definition: mib2_module.h:190
ICMP group.
Definition: mib2_module.h:383
Interfaces group.
Definition: mib2_module.h:343
Mib2IfAdminStatus
The desired state of the interface.
Definition: mib2_module.h:206
uint32_t snmpInBadVersions
Definition: mib2_module.h:457
uint32_t ifInDiscards
Definition: mib2_module.h:325
@ MIB2_SYS_SERVICE_PHYSICAL
Definition: mib2_module.h:174
#define MIB2_SYS_LOCATION_SIZE
Definition: mib2_module.h:127
@ MIB2_IF_TYPE_L2_VLAN
Definition: mib2_module.h:196
uint32_t ipFragFails
Definition: mib2_module.h:373
uint32_t ipForwDatagrams
Definition: mib2_module.h:361
uint32_t icmpOutAddrMasks
Definition: mib2_module.h:409
uint32_t icmpInMsgs
Definition: mib2_module.h:385
uint32_t ifOutDiscards
Definition: mib2_module.h:331
uint32_t icmpOutTimestampReps
Definition: mib2_module.h:408
uint32_t icmpInEchos
Definition: mib2_module.h:392
@ MIB2_TCP_CONN_STATE_CLOSE_WAIT
Definition: mib2_module.h:276
uint32_t ipInHdrErrors
Definition: mib2_module.h:359
int32_t sysServices
Definition: mib2_module.h:311
#define MIB2_SYS_DESCR_SIZE
Definition: mib2_module.h:99
@ MIB2_SYS_SERVICE_APPLICATIONS
Definition: mib2_module.h:178
@ MIB2_TCP_RTO_ALGORITHM_OTHER
Definition: mib2_module.h:256
@ MIB2_IF_TYPE_ETHERNET_CSMACD
Definition: mib2_module.h:189
uint32_t snmpOutPkts
Definition: mib2_module.h:456
uint32_t ifInUcastPkts
Definition: mib2_module.h:323
uint32_t snmpOutGetNexts
Definition: mib2_module.h:478
@ MIB2_IF_TYPE_PPP
Definition: mib2_module.h:191
Mib2IpForwarding
IP forwarding state.
Definition: mib2_module.h:230
uint32_t ipReasmReqds
Definition: mib2_module.h:369
@ MIB2_TCP_CONN_STATE_CLOSING
Definition: mib2_module.h:278
#define MIB2_SYS_NAME_SIZE
Definition: mib2_module.h:120
uint32_t tcpOutSegs
Definition: mib2_module.h:429
int32_t snmpEnableAuthenTraps
Definition: mib2_module.h:482
uint32_t snmpInTotalReqVars
Definition: mib2_module.h:466
uint32_t icmpInRedirects
Definition: mib2_module.h:391
uint32_t snmpInGetResponses
Definition: mib2_module.h:471
#define NET_INTERFACE_COUNT
Definition: net.h:109
@ MIB2_IF_TYPE_IEEE_802_15_4
Definition: mib2_module.h:198
uint32_t icmpInTimestamps
Definition: mib2_module.h:394
uint32_t ifOutUcastPkts
Definition: mib2_module.h:329
uint32_t snmpInPkts
Definition: mib2_module.h:455
@ MIB2_IP_NET_TO_MEDIA_TYPE_INVALID
Definition: mib2_module.h:244
@ MIB2_IP_FORWARDING_DISABLED
Definition: mib2_module.h:233
uint32_t udpOutDatagrams
Definition: mib2_module.h:445
int32_t tcpRtoMin
Definition: mib2_module.h:421
uint32_t ipFragCreates
Definition: mib2_module.h:374
uint32_t snmpInTotalSetVars
Definition: mib2_module.h:467
uint32_t ipReasmOKs
Definition: mib2_module.h:370
Mib2IfType
Interface types.
Definition: mib2_module.h:186
size_t sysObjectIDLen
Definition: mib2_module.h:296
uint32_t icmpOutTimeExcds
Definition: mib2_module.h:401
@ MIB2_TCP_CONN_STATE_LISTEN
Definition: mib2_module.h:270
Mib2IcmpGroup icmpGroup
Definition: mib2_module.h:496
uint32_t snmpInASNParseErrs
Definition: mib2_module.h:460
int32_t ipReasmTimeout
Definition: mib2_module.h:368
@ MIB2_TCP_CONN_STATE_DELETE_TCB
Definition: mib2_module.h:280
uint32_t icmpOutAddrMaskReps
Definition: mib2_module.h:410
uint32_t snmpInBadValues
Definition: mib2_module.h:463
uint32_t tcpOutRsts
Definition: mib2_module.h:432
uint32_t snmpInNoSuchNames
Definition: mib2_module.h:462
uint32_t ipInDiscards
Definition: mib2_module.h:363
@ MIB2_IF_ADMIN_STATUS_UP
Definition: mib2_module.h:208
Mib2TcpGroup tcpGroup
Definition: mib2_module.h:499
uint32_t ifInNUcastPkts
Definition: mib2_module.h:324
uint32_t tcpAttemptFails
Definition: mib2_module.h:426
uint32_t udpInDatagrams
Definition: mib2_module.h:442
int32_t ifNumber
Definition: mib2_module.h:345
uint32_t snmpOutSetRequests
Definition: mib2_module.h:479
@ MIB2_IF_TYPE_RS232
Definition: mib2_module.h:194
Mib2UdpGroup udpGroup
Definition: mib2_module.h:502
uint32_t ifOutNUcastPkts
Definition: mib2_module.h:330
uint32_t icmpOutDestUnreachs
Definition: mib2_module.h:400
uint32_t icmpInErrors
Definition: mib2_module.h:386
TCP group.
Definition: mib2_module.h:418
uint32_t icmpInEchoReps
Definition: mib2_module.h:393
uint32_t tcpRetransSegs
Definition: mib2_module.h:430
Mib2IfGroup ifGroup
Definition: mib2_module.h:493
uint32_t tcpEstabResets
Definition: mib2_module.h:427
@ MIB2_SYS_SERVICE_INTERNET
Definition: mib2_module.h:176
uint32_t icmpInSrcQuenchs
Definition: mib2_module.h:390
@ MIB2_TCP_CONN_STATE_FIN_WAIT_1
Definition: mib2_module.h:274
uint32_t ifOutErrors
Definition: mib2_module.h:332
@ MIB2_IF_OPER_STATUS_DOWN
Definition: mib2_module.h:221
#define MIB2_SYS_CONTACT_SIZE
Definition: mib2_module.h:113
uint32_t ipFragOKs
Definition: mib2_module.h:372
Mib2Base mib2Base
MIB-II base.
Definition: mib2_module.c:58
uint32_t icmpInTimeExcds
Definition: mib2_module.h:388
@ MIB2_TCP_CONN_STATE_LAST_ACK
Definition: mib2_module.h:277
uint32_t ipInUnknownProtos
Definition: mib2_module.h:362
@ MIB2_IF_TYPE_PARA
Definition: mib2_module.h:195
uint32_t icmpInTimestampReps
Definition: mib2_module.h:395
size_t sysContactLen
Definition: mib2_module.h:301
int32_t tcpRtoMax
Definition: mib2_module.h:422
uint32_t icmpOutTimestamps
Definition: mib2_module.h:407
uint32_t ifLastChange
Definition: mib2_module.h:321
uint32_t snmpOutTooBigs
Definition: mib2_module.h:473
Mib2IfOperStatus
The operational state of the interface.
Definition: mib2_module.h:218
@ MIB2_IF_ADMIN_STATUS_DOWN
Definition: mib2_module.h:209
@ MIB2_IP_FORWARDING_ENABLED
Definition: mib2_module.h:232
uint32_t snmpInGetNexts
Definition: mib2_module.h:469
uint32_t snmpInBadCommunityUses
Definition: mib2_module.h:459
MIB module.
Definition: mib_common.h:287
uint32_t sysUpTime
Definition: mib2_module.h:298
Mib2TcpConnState
TCP connection states.
Definition: mib2_module.h:267
@ MIB2_IP_NET_TO_MEDIA_TYPE_OTHER
Definition: mib2_module.h:243
uint32_t tcpInSegs
Definition: mib2_module.h:428
@ MIB2_IF_TYPE_SOFT_LOOPBACK
Definition: mib2_module.h:192
uint32_t icmpOutMsgs
Definition: mib2_module.h:398
uint32_t ifInUnknownProtos
Definition: mib2_module.h:327
size_t sysLocationLen
Definition: mib2_module.h:309
uint32_t icmpOutRedirects
Definition: mib2_module.h:404
@ MIB2_SYS_SERVICE_DATALINK
Definition: mib2_module.h:175
@ MIB2_TCP_CONN_STATE_CLOSED
Definition: mib2_module.h:269
uint32_t snmpOutNoSuchNames
Definition: mib2_module.h:474
uint32_t icmpInAddrMasks
Definition: mib2_module.h:396
uint32_t snmpOutGetRequests
Definition: mib2_module.h:477
int32_t ipDefaultTTL
Definition: mib2_module.h:357
char char_t
Definition: compiler_port.h:43
uint32_t icmpInAddrMaskReps
Definition: mib2_module.h:397
Mib2IpGroup ipGroup
Definition: mib2_module.h:495
Common definitions for MIB modules.
TCP (Transmission Control Protocol)
@ MIB2_TCP_RTO_ALGORITHM_CONSTANT
Definition: mib2_module.h:257
uint32_t tcpInErrs
Definition: mib2_module.h:431
uint32_t snmpInGenErrs
Definition: mib2_module.h:465
uint32_t snmpInTraps
Definition: mib2_module.h:472
uint32_t snmpOutGetResponses
Definition: mib2_module.h:480
uint32_t ifOutOctets
Definition: mib2_module.h:328
@ MIB2_SYS_SERVICE_END_TO_END
Definition: mib2_module.h:177
UDP (User Datagram Protocol)
uint32_t ipInReceives
Definition: mib2_module.h:358
@ MIB2_TCP_RTO_ALGORITHM_VANJ
Definition: mib2_module.h:259
uint32_t icmpOutParmProbs
Definition: mib2_module.h:402
int32_t tcpMaxConn
Definition: mib2_module.h:423
#define MibObject
Definition: mib_common.h:46
Mib2TcpRtoAlgorithm
RTO calculation algorithm.
Definition: mib2_module.h:254
@ MIB2_IF_ADMIN_STATUS_TESTING
Definition: mib2_module.h:210
uint32_t icmpOutSrcQuenchs
Definition: mib2_module.h:403
const MibModule mib2Module
MIB-II module.
Definition: mib2_module.c:2203
@ MIB2_TCP_CONN_STATE_TIME_WAIT
Definition: mib2_module.h:279
Mib2IpNetToMediaType
Type of mapping.
Definition: mib2_module.h:241
uint32_t ifInOctets
Definition: mib2_module.h:322
uint32_t udpInErrors
Definition: mib2_module.h:444
IP group.
Definition: mib2_module.h:354
uint32_t ifOutQLen
Definition: mib2_module.h:333
uint32_t ipReasmFails
Definition: mib2_module.h:371
#define MIB2_SYS_OBJECT_ID_SIZE
Definition: mib2_module.h:106
MIB-II base.
Definition: mib2_module.h:490
@ MIB2_IF_OPER_STATUS_TESTING
Definition: mib2_module.h:222
size_t sysNameLen
Definition: mib2_module.h:305
@ MIB2_IF_OPER_STATUS_UP
Definition: mib2_module.h:220
IPv4 (Internet Protocol Version 4)
#define MIB2_IF_SPECIFIC_SIZE
Definition: mib2_module.h:134
@ MIB2_TCP_CONN_STATE_SYN_SENT
Definition: mib2_module.h:271
uint32_t snmpInSetRequests
Definition: mib2_module.h:470
uint32_t snmpInReadOnlys
Definition: mib2_module.h:464
uint32_t ipOutNoRoutes
Definition: mib2_module.h:367
uint32_t snmpInGetRequests
Definition: mib2_module.h:468
uint32_t snmpOutGenErrs
Definition: mib2_module.h:476
int32_t ipForwarding
Definition: mib2_module.h:356
const MibObject mib2Objects[]
MIB-II objects.
Definition: mib2_module.c:65
TCP/IP stack core.
@ MIB2_IF_TYPE_USB
Definition: mib2_module.h:197
uint32_t icmpOutEchos
Definition: mib2_module.h:405
@ MIB2_TCP_CONN_STATE_ESTABLISHED
Definition: mib2_module.h:273
uint32_t snmpInBadCommunityNames
Definition: mib2_module.h:458
uint32_t tcpActiveOpens
Definition: mib2_module.h:424
uint32_t ipInDelivers
Definition: mib2_module.h:364
Mib2SysGroup sysGroup
Definition: mib2_module.h:492
uint32_t udpNoPorts
Definition: mib2_module.h:443
uint32_t ipOutRequests
Definition: mib2_module.h:365
int32_t tcpRtoAlgorithm
Definition: mib2_module.h:420
@ MIB2_IP_NET_TO_MEDIA_TYPE_DYNAMIC
Definition: mib2_module.h:245
uint32_t icmpInParmProbs
Definition: mib2_module.h:389
@ MIB2_IP_NET_TO_MEDIA_TYPE_STATIC
Definition: mib2_module.h:246
uint32_t snmpOutTraps
Definition: mib2_module.h:481
@ MIB2_TCP_RTO_ALGORITHM_RSRE
Definition: mib2_module.h:258
UDP group.
Definition: mib2_module.h:440
@ MIB2_TCP_CONN_STATE_SYN_RECEIVED
Definition: mib2_module.h:272
Mib2SysService
System services.
Definition: mib2_module.h:172
size_t ifSpecificLen
Definition: mib2_module.h:335
Mib2SnmpGroup snmpGroup
Definition: mib2_module.h:504
@ MIB2_IF_TYPE_SLIP
Definition: mib2_module.h:193
uint32_t ipRoutingDiscards
Definition: mib2_module.h:375
size_t sysDescrLen
Definition: mib2_module.h:292
System group.
Definition: mib2_module.h:288
uint32_t tcpPassiveOpens
Definition: mib2_module.h:425
uint32_t snmpOutBadValues
Definition: mib2_module.h:475
uint32_t ifInErrors
Definition: mib2_module.h:326