mib2_module.c
Go to the documentation of this file.
1 /**
2  * @file mib2_module.c
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  * @section Description
28  *
29  * The second version of the Management Information Base (MIB-II) is used to
30  * manage TCP/IP-based hosts. Refer to the following RFCs for complete details:
31  * - RFC 1156: MIB for Network Management of TCP/IP-based internets
32  * - RFC 1213: MIB for Network Management of TCP/IP-based internets (version 2)
33  *
34  * @author Oryx Embedded SARL (www.oryx-embedded.com)
35  * @version 1.9.6
36  **/
37 
38 //Switch to the appropriate trace level
39 #define TRACE_LEVEL SNMP_TRACE_LEVEL
40 
41 //Dependencies
42 #include "core/net.h"
43 #include "mibs/mib2_module.h"
44 #include "mibs/mib2_impl.h"
45 #include "core/crypto.h"
46 #include "encoding/asn1.h"
47 #include "encoding/oid.h"
48 #include "debug.h"
49 
50 //Check TCP/IP stack configuration
51 #if (MIB2_SUPPORT == ENABLED)
52 
53 
54 /**
55  * @brief MIB-II base
56  **/
57 
59 
60 
61 /**
62  * @brief MIB-II objects
63  **/
64 
66 {
67 #if (MIB2_SYS_GROUP_SUPPORT == ENABLED)
68  //sysDescr object (1.3.6.1.2.1.1.1)
69  {
70  "sysDescr",
71  {43, 6, 1, 2, 1, 1, 1},
72  7,
76 #if (MIB2_SYS_DESCR_SIZE > 0)
80  NULL,
81  NULL,
82  NULL
83 #else
84  NULL,
85  NULL,
86  0,
87  NULL,
89  NULL
90 #endif
91  },
92  //sysObjectID object (1.3.6.1.2.1.1.2)
93  {
94  "sysObjectID",
95  {43, 6, 1, 2, 1, 1, 2},
96  7,
100 #if (MIB2_SYS_OBJECT_ID_SIZE > 0)
104  NULL,
105  NULL,
106  NULL
107 #else
108  NULL,
109  NULL,
110  0,
111  NULL,
113  NULL
114 #endif
115  },
116  //sysUpTime object (1.3.6.1.2.1.1.3)
117  {
118  "sysUpTime",
119  {43, 6, 1, 2, 1, 1, 3},
120  7,
124  NULL,
125  NULL,
126  sizeof(uint32_t),
127  NULL,
129  NULL
130  },
131  //sysContact object (1.3.6.1.2.1.1.4)
132  {
133  "sysContact",
134  {43, 6, 1, 2, 1, 1, 4},
135  7,
139 #if (MIB2_SYS_CONTACT_SIZE > 0)
143  NULL,
144  NULL,
145  NULL
146 #else
147  NULL,
148  NULL,
149  0,
152  NULL
153 #endif
154  },
155  //sysName object (1.3.6.1.2.1.1.5)
156  {
157  "sysName",
158  {43, 6, 1, 2, 1, 1, 5},
159  7,
163 #if (MIB2_SYS_NAME_SIZE > 0)
167  NULL,
168  NULL,
169  NULL
170 #else
171  NULL,
172  NULL,
173  0,
176  NULL
177 #endif
178  },
179  //sysLocation object (1.3.6.1.2.1.1.6)
180  {
181  "sysLocation",
182  {43, 6, 1, 2, 1, 1, 6},
183  7,
187 #if (MIB2_SYS_LOCATION_SIZE > 0)
191  NULL,
192  NULL,
193  NULL
194 #else
195  NULL,
196  NULL,
197  0,
200  NULL
201 #endif
202  },
203  //sysServices object (1.3.6.1.2.1.1.7)
204  {
205  "sysServices",
206  {43, 6, 1, 2, 1, 1, 7},
207  7,
212  NULL,
213  sizeof(int32_t),
214  NULL,
215  NULL,
216  NULL
217  },
218 #endif
219 #if (MIB2_IF_GROUP_SUPPORT == ENABLED)
220  //ifNumber object (1.3.6.1.2.1.2.1)
221  {
222  "ifNumber",
223  {43, 6, 1, 2, 1, 2, 1},
224  7,
229  NULL,
230  sizeof(int32_t),
231  NULL,
232  NULL,
233  NULL
234  },
235  //ifIndex object (1.3.6.1.2.1.2.2.1.1)
236  {
237  "ifIndex",
238  {43, 6, 1, 2, 1, 2, 2, 1, 1},
239  9,
243  NULL,
244  NULL,
245  sizeof(int32_t),
246  NULL,
249  },
250  //ifDescr object (1.3.6.1.2.1.2.2.1.2)
251  {
252  "ifDescr",
253  {43, 6, 1, 2, 1, 2, 2, 1, 2},
254  9,
258  NULL,
259  NULL,
260  0,
261  NULL,
264  },
265  //ifType object (1.3.6.1.2.1.2.2.1.3)
266  {
267  "ifType",
268  {43, 6, 1, 2, 1, 2, 2, 1, 3},
269  9,
273  NULL,
274  NULL,
275  sizeof(int32_t),
276  NULL,
279  },
280  //ifMtu object (1.3.6.1.2.1.2.2.1.4)
281  {
282  "ifMtu",
283  {43, 6, 1, 2, 1, 2, 2, 1, 4},
284  9,
288  NULL,
289  NULL,
290  sizeof(int32_t),
291  NULL,
294  },
295  //ifSpeed object (1.3.6.1.2.1.2.2.1.5)
296  {
297  "ifSpeed",
298  {43, 6, 1, 2, 1, 2, 2, 1, 5},
299  9,
303  NULL,
304  NULL,
305  sizeof(uint32_t),
306  NULL,
309  },
310  //ifPhysAddress object (1.3.6.1.2.1.2.2.1.6)
311  {
312  "ifPhysAddress",
313  {43, 6, 1, 2, 1, 2, 2, 1, 6},
314  9,
318  NULL,
319  NULL,
321  NULL,
324  },
325  //ifAdminStatus object (1.3.6.1.2.1.2.2.1.7)
326  {
327  "ifAdminStatus",
328  {43, 6, 1, 2, 1, 2, 2, 1, 7},
329  9,
333  NULL,
334  NULL,
335  sizeof(int32_t),
339  },
340  //ifOperStatus object (1.3.6.1.2.1.2.2.1.8)
341  {
342  "ifOperStatus",
343  {43, 6, 1, 2, 1, 2, 2, 1, 8},
344  9,
348  NULL,
349  NULL,
350  sizeof(int32_t),
351  NULL,
354  },
355  //ifLastChange object (1.3.6.1.2.1.2.2.1.9)
356  {
357  "ifLastChange",
358  {43, 6, 1, 2, 1, 2, 2, 1, 9},
359  9,
363  NULL,
364  NULL,
365  sizeof(uint32_t),
366  NULL,
369  },
370  //ifInOctets object (1.3.6.1.2.1.2.2.1.10)
371  {
372  "ifInOctets",
373  {43, 6, 1, 2, 1, 2, 2, 1, 10},
374  9,
378  NULL,
379  NULL,
380  sizeof(uint32_t),
381  NULL,
384  },
385  //ifInUcastPkts object (1.3.6.1.2.1.2.2.1.11)
386  {
387  "ifInUcastPkts",
388  {43, 6, 1, 2, 1, 2, 2, 1, 11},
389  9,
393  NULL,
394  NULL,
395  sizeof(uint32_t),
396  NULL,
399  },
400  //ifInNUcastPkts object (1.3.6.1.2.1.2.2.1.12)
401  {
402  "ifInNUcastPkts",
403  {43, 6, 1, 2, 1, 2, 2, 1, 12},
404  9,
408  NULL,
409  NULL,
410  sizeof(uint32_t),
411  NULL,
414  },
415  //ifInDiscards object (1.3.6.1.2.1.2.2.1.13)
416  {
417  "ifInDiscards",
418  {43, 6, 1, 2, 1, 2, 2, 1, 13},
419  9,
423  NULL,
424  NULL,
425  sizeof(uint32_t),
426  NULL,
429  },
430  //ifInErrors object (1.3.6.1.2.1.2.2.1.14)
431  {
432  "ifInErrors",
433  {43, 6, 1, 2, 1, 2, 2, 1, 14},
434  9,
438  NULL,
439  NULL,
440  sizeof(uint32_t),
441  NULL,
444  },
445  //ifInUnknownProtos object (1.3.6.1.2.1.2.2.1.15)
446  {
447  "ifInUnknownProtos",
448  {43, 6, 1, 2, 1, 2, 2, 1, 15},
449  9,
453  NULL,
454  NULL,
455  sizeof(uint32_t),
456  NULL,
459  },
460  //ifOutOctets object (1.3.6.1.2.1.2.2.1.16)
461  {
462  "ifOutOctets",
463  {43, 6, 1, 2, 1, 2, 2, 1, 16},
464  9,
468  NULL,
469  NULL,
470  sizeof(uint32_t),
471  NULL,
474  },
475  //ifOutUcastPkts object (1.3.6.1.2.1.2.2.1.17)
476  {
477  "ifOutUcastPkts",
478  {43, 6, 1, 2, 1, 2, 2, 1, 17},
479  9,
483  NULL,
484  NULL,
485  sizeof(uint32_t),
486  NULL,
489  },
490  //ifOutNUcastPkts object (1.3.6.1.2.1.2.2.1.18)
491  {
492  "ifOutNUcastPkts",
493  {43, 6, 1, 2, 1, 2, 2, 1, 18},
494  9,
498  NULL,
499  NULL,
500  sizeof(uint32_t),
501  NULL,
504  },
505  //ifOutDiscards object (1.3.6.1.2.1.2.2.1.19)
506  {
507  "ifOutDiscards",
508  {43, 6, 1, 2, 1, 2, 2, 1, 19},
509  9,
513  NULL,
514  NULL,
515  sizeof(uint32_t),
516  NULL,
519  },
520  //ifOutErrors object (1.3.6.1.2.1.2.2.1.20)
521  {
522  "ifOutErrors",
523  {43, 6, 1, 2, 1, 2, 2, 1, 20},
524  9,
528  NULL,
529  NULL,
530  sizeof(uint32_t),
531  NULL,
534  },
535  //ifOutQLen object (1.3.6.1.2.1.2.2.1.21)
536  {
537  "ifOutQLen",
538  {43, 6, 1, 2, 1, 2, 2, 1, 21},
539  9,
543  NULL,
544  NULL,
545  sizeof(uint32_t),
546  NULL,
549  },
550  //ifSpecific object (1.3.6.1.2.1.2.2.1.22)
551  {
552  "ifSpecific",
553  {43, 6, 1, 2, 1, 2, 2, 1, 22},
554  9,
558  NULL,
559  NULL,
561  NULL,
564  },
565 #endif
566 #if (MIB2_IP_GROUP_SUPPORT == ENABLED && IPV4_SUPPORT == ENABLED)
567  //ipForwarding object (1.3.6.1.2.1.4.1)
568  {
569  "ipForwarding",
570  {43, 6, 1, 2, 1, 4, 1},
571  7,
576  NULL,
577  sizeof(int32_t),
578  NULL,
579  NULL,
580  NULL
581  },
582  //ipDefaultTTL object (1.3.6.1.2.1.4.2)
583  {
584  "ipDefaultTTL",
585  {43, 6, 1, 2, 1, 4, 2},
586  7,
591  NULL,
592  sizeof(int32_t),
593  NULL,
594  NULL,
595  NULL
596  },
597  //ipInReceives object (1.3.6.1.2.1.4.3)
598  {
599  "ipInReceives",
600  {43, 6, 1, 2, 1, 4, 3},
601  7,
606  NULL,
607  sizeof(uint32_t),
608  NULL,
609  NULL,
610  NULL
611  },
612  //ipInHdrErrors object (1.3.6.1.2.1.4.4)
613  {
614  "ipInHdrErrors",
615  {43, 6, 1, 2, 1, 4, 4},
616  7,
621  NULL,
622  sizeof(uint32_t),
623  NULL,
624  NULL,
625  NULL
626  },
627  //ipInAddrErrors object (1.3.6.1.2.1.4.5)
628  {
629  "ipInAddrErrors",
630  {43, 6, 1, 2, 1, 4, 5},
631  7,
636  NULL,
637  sizeof(uint32_t),
638  NULL,
639  NULL,
640  NULL
641  },
642  //ipForwDatagrams object (1.3.6.1.2.1.4.6)
643  {
644  "ipForwDatagrams",
645  {43, 6, 1, 2, 1, 4, 6},
646  7,
651  NULL,
652  sizeof(uint32_t),
653  NULL,
654  NULL,
655  NULL
656  },
657  //ipInUnknownProtos object (1.3.6.1.2.1.4.7)
658  {
659  "ipInUnknownProtos",
660  {43, 6, 1, 2, 1, 4, 7},
661  7,
666  NULL,
667  sizeof(uint32_t),
668  NULL,
669  NULL,
670  NULL
671  },
672  //ipInDiscards object (1.3.6.1.2.1.4.8)
673  {
674  "ipInDiscards",
675  {43, 6, 1, 2, 1, 4, 8},
676  7,
681  NULL,
682  sizeof(uint32_t),
683  NULL,
684  NULL,
685  NULL
686  },
687  //ipInDelivers object (1.3.6.1.2.1.4.9)
688  {
689  "ipInDelivers",
690  {43, 6, 1, 2, 1, 4, 9},
691  7,
696  NULL,
697  sizeof(uint32_t),
698  NULL,
699  NULL,
700  NULL
701  },
702  //ipOutRequests object (1.3.6.1.2.1.4.10)
703  {
704  "ipOutRequests",
705  {43, 6, 1, 2, 1, 4, 10},
706  7,
711  NULL,
712  sizeof(uint32_t),
713  NULL,
714  NULL,
715  NULL
716  },
717  //ipOutDiscards object (1.3.6.1.2.1.4.11)
718  {
719  "ipOutDiscards",
720  {43, 6, 1, 2, 1, 4, 11},
721  7,
726  NULL,
727  sizeof(uint32_t),
728  NULL,
729  NULL,
730  NULL
731  },
732  //ipOutNoRoutes object (1.3.6.1.2.1.4.12)
733  {
734  "ipOutNoRoutes",
735  {43, 6, 1, 2, 1, 4, 12},
736  7,
741  NULL,
742  sizeof(uint32_t),
743  NULL,
744  NULL,
745  NULL
746  },
747  //ipReasmTimeout object (1.3.6.1.2.1.4.13)
748  {
749  "ipReasmTimeout",
750  {43, 6, 1, 2, 1, 4, 13},
751  7,
756  NULL,
757  sizeof(int32_t),
758  NULL,
759  NULL,
760  NULL
761  },
762  //ipReasmReqds object (1.3.6.1.2.1.4.14)
763  {
764  "ipReasmReqds",
765  {43, 6, 1, 2, 1, 4, 14},
766  7,
771  NULL,
772  sizeof(uint32_t),
773  NULL,
774  NULL,
775  NULL
776  },
777  //ipReasmOKs object (1.3.6.1.2.1.4.15)
778  {
779  "ipReasmOKs",
780  {43, 6, 1, 2, 1, 4, 15},
781  7,
786  NULL,
787  sizeof(uint32_t),
788  NULL,
789  NULL,
790  NULL
791  },
792  //ipReasmFails object (1.3.6.1.2.1.4.16)
793  {
794  "ipReasmFails",
795  {43, 6, 1, 2, 1, 4, 16},
796  7,
801  NULL,
802  sizeof(uint32_t),
803  NULL,
804  NULL,
805  NULL
806  },
807  //ipFragOKs object (1.3.6.1.2.1.4.17)
808  {
809  "ipFragOKs",
810  {43, 6, 1, 2, 1, 4, 17},
811  7,
816  NULL,
817  sizeof(uint32_t),
818  NULL,
819  NULL,
820  NULL
821  },
822  //ipFragFails object (1.3.6.1.2.1.4.18)
823  {
824  "ipFragFails",
825  {43, 6, 1, 2, 1, 4, 18},
826  7,
831  NULL,
832  sizeof(uint32_t),
833  NULL,
834  NULL,
835  NULL
836  },
837  //ipFragCreates object (1.3.6.1.2.1.4.19)
838  {
839  "ipFragCreates",
840  {43, 6, 1, 2, 1, 4, 19},
841  7,
846  NULL,
847  sizeof(uint32_t),
848  NULL,
849  NULL,
850  NULL
851  },
852  //ipAdEntAddr object (1.3.6.1.2.1.4.20.1.1)
853  {
854  "ipAdEntAddr",
855  {43, 6, 1, 2, 1, 4, 20, 1, 1},
856  9,
860  NULL,
861  NULL,
863  NULL,
866  },
867  //ipAdEntIfIndex object (1.3.6.1.2.1.4.20.1.2)
868  {
869  "ipAdEntIfIndex",
870  {43, 6, 1, 2, 1, 4, 20, 1, 2},
871  9,
875  NULL,
876  NULL,
877  sizeof(int32_t),
878  NULL,
881  },
882  //ipAdEntNetMask object (1.3.6.1.2.1.4.20.1.3)
883  {
884  "ipAdEntNetMask",
885  {43, 6, 1, 2, 1, 4, 20, 1, 3},
886  9,
890  NULL,
891  NULL,
893  NULL,
896  },
897  //ipAdEntBcastAddr object (1.3.6.1.2.1.4.20.1.4)
898  {
899  "ipAdEntBcastAddr",
900  {43, 6, 1, 2, 1, 4, 20, 1, 4},
901  9,
905  NULL,
906  NULL,
907  sizeof(int32_t),
908  NULL,
911  },
912  //ipAdEntReasmMaxSize object (1.3.6.1.2.1.4.20.1.5)
913  {
914  "ipAdEntReasmMaxSize",
915  {43, 6, 1, 2, 1, 4, 20, 1, 5},
916  9,
920  NULL,
921  NULL,
922  sizeof(int32_t),
923  NULL,
926  },
927  //ipNetToMediaIfIndex object (1.3.6.1.2.1.4.22.1.1)
928  {
929  "ipNetToMediaIfIndex",
930  {43, 6, 1, 2, 1, 4, 22, 1, 1},
931  9,
935  NULL,
936  NULL,
937  sizeof(int32_t),
941  },
942  //ipNetToMediaPhysAddress object (1.3.6.1.2.1.4.22.1.2)
943  {
944  "ipNetToMediaPhysAddress",
945  {43, 6, 1, 2, 1, 4, 22, 1, 2},
946  9,
950  NULL,
951  NULL,
956  },
957  //ipNetToMediaNetAddress object (1.3.6.1.2.1.4.22.1.3)
958  {
959  "ipNetToMediaNetAddress",
960  {43, 6, 1, 2, 1, 4, 22, 1, 3},
961  9,
965  NULL,
966  NULL,
971  },
972  //ipNetToMediaType object (1.3.6.1.2.1.4.22.1.4)
973  {
974  "ipNetToMediaType",
975  {43, 6, 1, 2, 1, 4, 22, 1, 4},
976  9,
980  NULL,
981  NULL,
982  sizeof(int32_t),
986  },
987  //ipRoutingDiscards object (1.3.6.1.2.1.4.23)
988  {
989  "ipRoutingDiscards",
990  {43, 6, 1, 2, 1, 4, 23},
991  7,
996  NULL,
997  sizeof(uint32_t),
998  NULL,
999  NULL,
1000  NULL
1001  },
1002 #endif
1003 #if (MIB2_ICMP_GROUP_SUPPORT == ENABLED && IPV4_SUPPORT == ENABLED)
1004  //icmpInMsgs object (1.3.6.1.2.1.5.1)
1005  {
1006  "icmpInMsgs",
1007  {43, 6, 1, 2, 1, 5, 1},
1008  7,
1013  NULL,
1014  sizeof(uint32_t),
1015  NULL,
1016  NULL,
1017  NULL
1018  },
1019  //icmpInErrors object (1.3.6.1.2.1.5.2)
1020  {
1021  "icmpInErrors",
1022  {43, 6, 1, 2, 1, 5, 2},
1023  7,
1028  NULL,
1029  sizeof(uint32_t),
1030  NULL,
1031  NULL,
1032  NULL
1033  },
1034  //icmpInDestUnreachs object (1.3.6.1.2.1.5.3)
1035  {
1036  "icmpInDestUnreachs",
1037  {43, 6, 1, 2, 1, 5, 3},
1038  7,
1043  NULL,
1044  sizeof(uint32_t),
1045  NULL,
1046  NULL,
1047  NULL
1048  },
1049  //icmpInTimeExcds object (1.3.6.1.2.1.5.4)
1050  {
1051  "icmpInTimeExcds",
1052  {43, 6, 1, 2, 1, 5, 4},
1053  7,
1058  NULL,
1059  sizeof(uint32_t),
1060  NULL,
1061  NULL,
1062  NULL
1063  },
1064  //icmpInParmProbs object (1.3.6.1.2.1.5.5)
1065  {
1066  "icmpInParmProbs",
1067  {43, 6, 1, 2, 1, 5, 5},
1068  7,
1073  NULL,
1074  sizeof(uint32_t),
1075  NULL,
1076  NULL,
1077  NULL
1078  },
1079  //icmpInSrcQuenchs object (1.3.6.1.2.1.5.6)
1080  {
1081  "icmpInSrcQuenchs",
1082  {43, 6, 1, 2, 1, 5, 6},
1083  7,
1088  NULL,
1089  sizeof(uint32_t),
1090  NULL,
1091  NULL,
1092  NULL
1093  },
1094  //icmpInRedirects object (1.3.6.1.2.1.5.7)
1095  {
1096  "icmpInRedirects",
1097  {43, 6, 1, 2, 1, 5, 7},
1098  7,
1103  NULL,
1104  sizeof(uint32_t),
1105  NULL,
1106  NULL,
1107  NULL
1108  },
1109  //icmpInEchos object (1.3.6.1.2.1.5.8)
1110  {
1111  "icmpInEchos",
1112  {43, 6, 1, 2, 1, 5, 8},
1113  7,
1118  NULL,
1119  sizeof(uint32_t),
1120  NULL,
1121  NULL,
1122  NULL
1123  },
1124  //icmpInEchoReps object (1.3.6.1.2.1.5.9)
1125  {
1126  "icmpInEchoReps",
1127  {43, 6, 1, 2, 1, 5, 9},
1128  7,
1133  NULL,
1134  sizeof(uint32_t),
1135  NULL,
1136  NULL,
1137  NULL
1138  },
1139  //icmpInTimestamps object (1.3.6.1.2.1.5.10)
1140  {
1141  "icmpInTimestamps",
1142  {43, 6, 1, 2, 1, 5, 10},
1143  7,
1148  NULL,
1149  sizeof(uint32_t),
1150  NULL,
1151  NULL,
1152  NULL
1153  },
1154  //icmpInTimestampReps object (1.3.6.1.2.1.5.11)
1155  {
1156  "icmpInTimestampReps",
1157  {43, 6, 1, 2, 1, 5, 11},
1158  7,
1163  NULL,
1164  sizeof(uint32_t),
1165  NULL,
1166  NULL,
1167  NULL
1168  },
1169  //icmpInAddrMasks object (1.3.6.1.2.1.5.12)
1170  {
1171  "icmpInAddrMasks",
1172  {43, 6, 1, 2, 1, 5, 12},
1173  7,
1178  NULL,
1179  sizeof(uint32_t),
1180  NULL,
1181  NULL,
1182  NULL
1183  },
1184  //icmpInAddrMaskReps object (1.3.6.1.2.1.5.13)
1185  {
1186  "icmpInAddrMaskReps",
1187  {43, 6, 1, 2, 1, 5, 13},
1188  7,
1193  NULL,
1194  sizeof(uint32_t),
1195  NULL,
1196  NULL,
1197  NULL
1198  },
1199  //icmpOutMsgs object (1.3.6.1.2.1.5.14)
1200  {
1201  "icmpOutMsgs",
1202  {43, 6, 1, 2, 1, 5, 14},
1203  7,
1208  NULL,
1209  sizeof(uint32_t),
1210  NULL,
1211  NULL,
1212  NULL
1213  },
1214  //icmpOutErrors object (1.3.6.1.2.1.5.15)
1215  {
1216  "icmpOutErrors",
1217  {43, 6, 1, 2, 1, 5, 15},
1218  7,
1223  NULL,
1224  sizeof(uint32_t),
1225  NULL,
1226  NULL,
1227  NULL
1228  },
1229  //icmpOutDestUnreachs object (1.3.6.1.2.1.5.16)
1230  {
1231  "icmpOutDestUnreachs",
1232  {43, 6, 1, 2, 1, 5, 16},
1233  7,
1238  NULL,
1239  sizeof(uint32_t),
1240  NULL,
1241  NULL,
1242  NULL
1243  },
1244  //icmpOutTimeExcds object (1.3.6.1.2.1.5.17)
1245  {
1246  "icmpOutTimeExcds",
1247  {43, 6, 1, 2, 1, 5, 17},
1248  7,
1253  NULL,
1254  sizeof(uint32_t),
1255  NULL,
1256  NULL,
1257  NULL
1258  },
1259  //icmpOutParmProbs object (1.3.6.1.2.1.5.18)
1260  {
1261  "icmpOutParmProbs",
1262  {43, 6, 1, 2, 1, 5, 18},
1263  7,
1268  NULL,
1269  sizeof(uint32_t),
1270  NULL,
1271  NULL,
1272  NULL
1273  },
1274  //icmpOutSrcQuenchs object (1.3.6.1.2.1.5.19)
1275  {
1276  "icmpOutSrcQuenchs",
1277  {43, 6, 1, 2, 1, 5, 19},
1278  7,
1283  NULL,
1284  sizeof(uint32_t),
1285  NULL,
1286  NULL,
1287  NULL
1288  },
1289  //icmpOutRedirects object (1.3.6.1.2.1.5.20)
1290  {
1291  "icmpOutRedirects",
1292  {43, 6, 1, 2, 1, 5, 20},
1293  7,
1298  NULL,
1299  sizeof(uint32_t),
1300  NULL,
1301  NULL,
1302  NULL
1303  },
1304  //icmpOutEchos object (1.3.6.1.2.1.5.21)
1305  {
1306  "icmpOutEchos",
1307  {43, 6, 1, 2, 1, 5, 21},
1308  7,
1313  NULL,
1314  sizeof(uint32_t),
1315  NULL,
1316  NULL,
1317  NULL
1318  },
1319  //icmpOutEchoReps object (1.3.6.1.2.1.5.22)
1320  {
1321  "icmpOutEchoReps",
1322  {43, 6, 1, 2, 1, 5, 22},
1323  7,
1328  NULL,
1329  sizeof(uint32_t),
1330  NULL,
1331  NULL,
1332  NULL
1333  },
1334  //icmpOutTimestamps object (1.3.6.1.2.1.5.23)
1335  {
1336  "icmpOutTimestamps",
1337  {43, 6, 1, 2, 1, 5, 23},
1338  7,
1343  NULL,
1344  sizeof(uint32_t),
1345  NULL,
1346  NULL,
1347  NULL
1348  },
1349  //icmpOutTimestampReps object (1.3.6.1.2.1.5.24)
1350  {
1351  "icmpOutTimestampReps",
1352  {43, 6, 1, 2, 1, 5, 24},
1353  7,
1358  NULL,
1359  sizeof(uint32_t),
1360  NULL,
1361  NULL,
1362  NULL
1363  },
1364  //icmpOutAddrMasks object (1.3.6.1.2.1.5.25)
1365  {
1366  "icmpOutAddrMasks",
1367  {43, 6, 1, 2, 1, 5, 25},
1368  7,
1373  NULL,
1374  sizeof(uint32_t),
1375  NULL,
1376  NULL,
1377  NULL
1378  },
1379  //icmpOutAddrMaskReps object (1.3.6.1.2.1.5.26)
1380  {
1381  "icmpOutAddrMaskReps",
1382  {43, 6, 1, 2, 1, 5, 26},
1383  7,
1388  NULL,
1389  sizeof(uint32_t),
1390  NULL,
1391  NULL,
1392  NULL
1393  },
1394 #endif
1395 #if (MIB2_TCP_GROUP_SUPPORT == ENABLED && TCP_SUPPORT == ENABLED && IPV4_SUPPORT == ENABLED)
1396  //tcpRtoAlgorithm object (1.3.6.1.2.1.6.1)
1397  {
1398  "tcpRtoAlgorithm",
1399  {43, 6, 1, 2, 1, 6, 1},
1400  7,
1405  NULL,
1406  sizeof(int32_t),
1407  NULL,
1408  NULL,
1409  NULL
1410  },
1411  //tcpRtoMin object (1.3.6.1.2.1.6.2)
1412  {
1413  "tcpRtoMin",
1414  {43, 6, 1, 2, 1, 6, 2},
1415  7,
1420  NULL,
1421  sizeof(int32_t),
1422  NULL,
1423  NULL,
1424  NULL
1425  },
1426  //tcpRtoMax object (1.3.6.1.2.1.6.3)
1427  {
1428  "tcpRtoMax",
1429  {43, 6, 1, 2, 1, 6, 3},
1430  7,
1435  NULL,
1436  sizeof(int32_t),
1437  NULL,
1438  NULL,
1439  NULL
1440  },
1441  //tcpMaxConn object (1.3.6.1.2.1.6.4)
1442  {
1443  "tcpMaxConn",
1444  {43, 6, 1, 2, 1, 6, 4},
1445  7,
1450  NULL,
1451  sizeof(int32_t),
1452  NULL,
1453  NULL,
1454  NULL
1455  },
1456  //tcpActiveOpens object (1.3.6.1.2.1.6.5)
1457  {
1458  "tcpActiveOpens",
1459  {43, 6, 1, 2, 1, 6, 5},
1460  7,
1465  NULL,
1466  sizeof(uint32_t),
1467  NULL,
1468  NULL,
1469  NULL
1470  },
1471  //tcpPassiveOpens object (1.3.6.1.2.1.6.6)
1472  {
1473  "tcpPassiveOpens",
1474  {43, 6, 1, 2, 1, 6, 6},
1475  7,
1480  NULL,
1481  sizeof(uint32_t),
1482  NULL,
1483  NULL,
1484  NULL
1485  },
1486  //tcpAttemptFails object (1.3.6.1.2.1.6.7)
1487  {
1488  "tcpAttemptFails",
1489  {43, 6, 1, 2, 1, 6, 7},
1490  7,
1495  NULL,
1496  sizeof(uint32_t),
1497  NULL,
1498  NULL,
1499  NULL
1500  },
1501  //tcpEstabResets object (1.3.6.1.2.1.6.8)
1502  {
1503  "tcpEstabResets",
1504  {43, 6, 1, 2, 1, 6, 8},
1505  7,
1510  NULL,
1511  sizeof(uint32_t),
1512  NULL,
1513  NULL,
1514  NULL
1515  },
1516  //tcpCurrEstab object (1.3.6.1.2.1.6.9)
1517  {
1518  "tcpCurrEstab",
1519  {43, 6, 1, 2, 1, 6, 9},
1520  7,
1524  NULL,
1525  NULL,
1526  sizeof(uint32_t),
1527  NULL,
1529  NULL
1530  },
1531  //tcpInSegs object (1.3.6.1.2.1.6.10)
1532  {
1533  "tcpInSegs",
1534  {43, 6, 1, 2, 1, 6, 10},
1535  7,
1540  NULL,
1541  sizeof(uint32_t),
1542  NULL,
1543  NULL,
1544  NULL
1545  },
1546  //tcpOutSegs object (1.3.6.1.2.1.6.11)
1547  {
1548  "tcpOutSegs",
1549  {43, 6, 1, 2, 1, 6, 11},
1550  7,
1555  NULL,
1556  sizeof(uint32_t),
1557  NULL,
1558  NULL,
1559  NULL
1560  },
1561  //tcpRetransSegs object (1.3.6.1.2.1.6.12)
1562  {
1563  "tcpRetransSegs",
1564  {43, 6, 1, 2, 1, 6, 12},
1565  7,
1570  NULL,
1571  sizeof(uint32_t),
1572  NULL,
1573  NULL,
1574  NULL
1575  },
1576  //tcpConnState object (1.3.6.1.2.1.6.13.1.1)
1577  {
1578  "tcpConnState",
1579  {43, 6, 1, 2, 1, 6, 13, 1, 1},
1580  9,
1584  NULL,
1585  NULL,
1586  sizeof(int32_t),
1590  },
1591  //tcpConnLocalAddress object (1.3.6.1.2.1.6.13.1.2)
1592  {
1593  "tcpConnLocalAddress",
1594  {43, 6, 1, 2, 1, 6, 13, 1, 2},
1595  9,
1599  NULL,
1600  NULL,
1602  NULL,
1605  },
1606  //tcpConnLocalPort object (1.3.6.1.2.1.6.13.1.3)
1607  {
1608  "tcpConnLocalPort",
1609  {43, 6, 1, 2, 1, 6, 13, 1, 3},
1610  9,
1614  NULL,
1615  NULL,
1616  sizeof(int32_t),
1617  NULL,
1620  },
1621  //tcpConnRemAddress object (1.3.6.1.2.1.6.13.1.4)
1622  {
1623  "tcpConnRemAddress",
1624  {43, 6, 1, 2, 1, 6, 13, 1, 4},
1625  9,
1629  NULL,
1630  NULL,
1632  NULL,
1635  },
1636  //tcpConnRemPort object (1.3.6.1.2.1.6.13.1.5)
1637  {
1638  "tcpConnRemPort",
1639  {43, 6, 1, 2, 1, 6, 13, 1, 5},
1640  9,
1644  NULL,
1645  NULL,
1646  sizeof(int32_t),
1647  NULL,
1650  },
1651  //tcpInErrs object (1.3.6.1.2.1.6.14)
1652  {
1653  "tcpInErrs",
1654  {43, 6, 1, 2, 1, 6, 14},
1655  7,
1660  NULL,
1661  sizeof(uint32_t),
1662  NULL,
1663  NULL,
1664  NULL
1665  },
1666  //tcpOutRsts object (1.3.6.1.2.1.6.15)
1667  {
1668  "tcpOutRsts",
1669  {43, 6, 1, 2, 1, 6, 15},
1670  7,
1675  NULL,
1676  sizeof(uint32_t),
1677  NULL,
1678  NULL,
1679  NULL
1680  },
1681 #endif
1682 #if (MIB2_UDP_GROUP_SUPPORT == ENABLED && UDP_SUPPORT == ENABLED && IPV4_SUPPORT == ENABLED)
1683  //udpInDatagrams object (1.3.6.1.2.1.7.1)
1684  {
1685  "udpInDatagrams",
1686  {43, 6, 1, 2, 1, 7, 1},
1687  7,
1692  NULL,
1693  sizeof(uint32_t),
1694  NULL,
1695  NULL,
1696  NULL
1697  },
1698  //udpNoPorts object (1.3.6.1.2.1.7.2)
1699  {
1700  "udpNoPorts",
1701  {43, 6, 1, 2, 1, 7, 2},
1702  7,
1707  NULL,
1708  sizeof(uint32_t),
1709  NULL,
1710  NULL,
1711  NULL
1712  },
1713  //udpInErrors object (1.3.6.1.2.1.7.3)
1714  {
1715  "udpInErrors",
1716  {43, 6, 1, 2, 1, 7, 3},
1717  7,
1722  NULL,
1723  sizeof(uint32_t),
1724  NULL,
1725  NULL,
1726  NULL
1727  },
1728  //udpOutDatagrams object (1.3.6.1.2.1.7.4)
1729  {
1730  "udpOutDatagrams",
1731  {43, 6, 1, 2, 1, 7, 4},
1732  7,
1737  NULL,
1738  sizeof(uint32_t),
1739  NULL,
1740  NULL,
1741  NULL
1742  },
1743  //udpLocalAddress object (1.3.6.1.2.1.7.5.1.1)
1744  {
1745  "udpLocalAddress",
1746  {43, 6, 1, 2, 1, 7, 5, 1, 1},
1747  9,
1751  NULL,
1752  NULL,
1754  NULL,
1757  },
1758  //udpLocalPort object (1.3.6.1.2.1.7.5.1.2)
1759  {
1760  "udpLocalPort",
1761  {43, 6, 1, 2, 1, 7, 5, 1, 2},
1762  9,
1766  NULL,
1767  NULL,
1768  sizeof(int32_t),
1769  NULL,
1772  },
1773 #endif
1774 #if (MIB2_SNMP_GROUP_SUPPORT == ENABLED)
1775  //snmpInPkts object (1.3.6.1.2.1.11.1)
1776  {
1777  "snmpInPkts",
1778  {43, 6, 1, 2, 1, 11, 1},
1779  7,
1784  NULL,
1785  sizeof(uint32_t),
1786  NULL,
1787  NULL,
1788  NULL
1789  },
1790  //snmpOutPkts object (1.3.6.1.2.1.11.2)
1791  {
1792  "snmpOutPkts",
1793  {43, 6, 1, 2, 1, 11, 2},
1794  7,
1799  NULL,
1800  sizeof(uint32_t),
1801  NULL,
1802  NULL,
1803  NULL
1804  },
1805  //snmpInBadVersions object (1.3.6.1.2.1.11.3)
1806  {
1807  "snmpInBadVersions",
1808  {43, 6, 1, 2, 1, 11, 3},
1809  7,
1814  NULL,
1815  sizeof(uint32_t),
1816  NULL,
1817  NULL,
1818  NULL
1819  },
1820  //snmpInBadCommunityNames object (1.3.6.1.2.1.11.4)
1821  {
1822  "snmpInBadCommunityNames",
1823  {43, 6, 1, 2, 1, 11, 4},
1824  7,
1829  NULL,
1830  sizeof(uint32_t),
1831  NULL,
1832  NULL,
1833  NULL
1834  },
1835  //snmpInBadCommunityUses object (1.3.6.1.2.1.11.5)
1836  {
1837  "snmpInBadCommunityUses",
1838  {43, 6, 1, 2, 1, 11, 5},
1839  7,
1844  NULL,
1845  sizeof(uint32_t),
1846  NULL,
1847  NULL,
1848  NULL
1849  },
1850  //snmpInASNParseErrs object (1.3.6.1.2.1.11.6)
1851  {
1852  "snmpInASNParseErrs",
1853  {43, 6, 1, 2, 1, 11, 6},
1854  7,
1859  NULL,
1860  sizeof(uint32_t),
1861  NULL,
1862  NULL,
1863  NULL
1864  },
1865  //snmpInTooBigs object (1.3.6.1.2.1.11.8)
1866  {
1867  "snmpInTooBigs",
1868  {43, 6, 1, 2, 1, 11, 8},
1869  7,
1874  NULL,
1875  sizeof(uint32_t),
1876  NULL,
1877  NULL,
1878  NULL
1879  },
1880  //snmpInNoSuchNames object (1.3.6.1.2.1.11.9)
1881  {
1882  "snmpInNoSuchNames",
1883  {43, 6, 1, 2, 1, 11, 9},
1884  7,
1889  NULL,
1890  sizeof(uint32_t),
1891  NULL,
1892  NULL,
1893  NULL
1894  },
1895  //snmpInBadValues object (1.3.6.1.2.1.11.10)
1896  {
1897  "snmpInBadValues",
1898  {43, 6, 1, 2, 1, 11, 10},
1899  7,
1904  NULL,
1905  sizeof(uint32_t),
1906  NULL,
1907  NULL,
1908  NULL
1909  },
1910  //snmpInReadOnlys object (1.3.6.1.2.1.11.11)
1911  {
1912  "snmpInReadOnlys",
1913  {43, 6, 1, 2, 1, 11, 11},
1914  7,
1919  NULL,
1920  sizeof(uint32_t),
1921  NULL,
1922  NULL,
1923  NULL
1924  },
1925  //snmpInGenErrs object (1.3.6.1.2.1.11.12)
1926  {
1927  "snmpInGenErrs",
1928  {43, 6, 1, 2, 1, 11, 12},
1929  7,
1934  NULL,
1935  sizeof(uint32_t),
1936  NULL,
1937  NULL,
1938  NULL
1939  },
1940  //snmpInTotalReqVars object (1.3.6.1.2.1.11.13)
1941  {
1942  "snmpInTotalReqVars",
1943  {43, 6, 1, 2, 1, 11, 13},
1944  7,
1949  NULL,
1950  sizeof(uint32_t),
1951  NULL,
1952  NULL,
1953  NULL
1954  },
1955  //snmpInTotalSetVars object (1.3.6.1.2.1.11.14)
1956  {
1957  "snmpInTotalSetVars",
1958  {43, 6, 1, 2, 1, 11, 14},
1959  7,
1964  NULL,
1965  sizeof(uint32_t),
1966  NULL,
1967  NULL,
1968  NULL
1969  },
1970  //snmpInGetRequests object (1.3.6.1.2.1.11.15)
1971  {
1972  "snmpInGetRequests",
1973  {43, 6, 1, 2, 1, 11, 15},
1974  7,
1979  NULL,
1980  sizeof(uint32_t),
1981  NULL,
1982  NULL,
1983  NULL
1984  },
1985  //snmpInGetNexts object (1.3.6.1.2.1.11.16)
1986  {
1987  "snmpInGetNexts",
1988  {43, 6, 1, 2, 1, 11, 16},
1989  7,
1994  NULL,
1995  sizeof(uint32_t),
1996  NULL,
1997  NULL,
1998  NULL
1999  },
2000  //snmpInSetRequests object (1.3.6.1.2.1.11.17)
2001  {
2002  "snmpInSetRequests",
2003  {43, 6, 1, 2, 1, 11, 17},
2004  7,
2009  NULL,
2010  sizeof(uint32_t),
2011  NULL,
2012  NULL,
2013  NULL
2014  },
2015  //snmpInGetResponses object (1.3.6.1.2.1.11.18)
2016  {
2017  "snmpInGetResponses",
2018  {43, 6, 1, 2, 1, 11, 18},
2019  7,
2024  NULL,
2025  sizeof(uint32_t),
2026  NULL,
2027  NULL,
2028  NULL
2029  },
2030  //snmpInTraps object (1.3.6.1.2.1.11.19)
2031  {
2032  "snmpInTraps",
2033  {43, 6, 1, 2, 1, 11, 19},
2034  7,
2039  NULL,
2040  sizeof(uint32_t),
2041  NULL,
2042  NULL,
2043  NULL
2044  },
2045  //snmpOutTooBigs object (1.3.6.1.2.1.11.20)
2046  {
2047  "snmpOutTooBigs",
2048  {43, 6, 1, 2, 1, 11, 20},
2049  7,
2054  NULL,
2055  sizeof(uint32_t),
2056  NULL,
2057  NULL,
2058  NULL
2059  },
2060  //snmpOutNoSuchNames object (1.3.6.1.2.1.11.21)
2061  {
2062  "snmpOutNoSuchNames",
2063  {43, 6, 1, 2, 1, 11, 21},
2064  7,
2069  NULL,
2070  sizeof(uint32_t),
2071  NULL,
2072  NULL,
2073  NULL
2074  },
2075  //snmpOutBadValues object (1.3.6.1.2.1.11.22)
2076  {
2077  "snmpOutBadValues",
2078  {43, 6, 1, 2, 1, 11, 22},
2079  7,
2084  NULL,
2085  sizeof(uint32_t),
2086  NULL,
2087  NULL,
2088  NULL
2089  },
2090  //snmpOutGenErrs object (1.3.6.1.2.1.11.24)
2091  {
2092  "snmpOutGenErrs",
2093  {43, 6, 1, 2, 1, 11, 24},
2094  7,
2099  NULL,
2100  sizeof(uint32_t),
2101  NULL,
2102  NULL,
2103  NULL
2104  },
2105  //snmpOutGetRequests object (1.3.6.1.2.1.11.25)
2106  {
2107  "snmpOutGetRequests",
2108  {43, 6, 1, 2, 1, 11, 25},
2109  7,
2114  NULL,
2115  sizeof(uint32_t),
2116  NULL,
2117  NULL,
2118  NULL
2119  },
2120  //snmpOutGetNexts object (1.3.6.1.2.1.11.26)
2121  {
2122  "snmpOutGetNexts",
2123  {43, 6, 1, 2, 1, 11, 26},
2124  7,
2129  NULL,
2130  sizeof(uint32_t),
2131  NULL,
2132  NULL,
2133  NULL
2134  },
2135  //snmpOutSetRequests object (1.3.6.1.2.1.11.27)
2136  {
2137  "snmpOutSetRequests",
2138  {43, 6, 1, 2, 1, 11, 27},
2139  7,
2144  NULL,
2145  sizeof(uint32_t),
2146  NULL,
2147  NULL,
2148  NULL
2149  },
2150  //snmpOutGetResponses object (1.3.6.1.2.1.11.28)
2151  {
2152  "snmpOutGetResponses",
2153  {43, 6, 1, 2, 1, 11, 28},
2154  7,
2159  NULL,
2160  sizeof(uint32_t),
2161  NULL,
2162  NULL,
2163  NULL
2164  },
2165  //snmpOutTraps object (1.3.6.1.2.1.11.29)
2166  {
2167  "snmpOutTraps",
2168  {43, 6, 1, 2, 1, 11, 29},
2169  7,
2174  NULL,
2175  sizeof(uint32_t),
2176  NULL,
2177  NULL,
2178  NULL
2179  },
2180  //snmpEnableAuthenTraps object (1.3.6.1.2.1.11.30)
2181  {
2182  "snmpEnableAuthenTraps",
2183  {43, 6, 1, 2, 1, 11, 30},
2184  7,
2189  NULL,
2190  sizeof(int32_t),
2191  NULL,
2192  NULL,
2193  NULL
2194  }
2195 #endif
2196 };
2197 
2198 
2199 /**
2200  * @brief MIB-II module
2201  **/
2202 
2204 {
2205  "RFC1213-MIB",
2206  {43, 6, 1, 2, 1},
2207  5,
2208  mib2Objects,
2210  mib2Init,
2211  NULL,
2212  NULL,
2213  NULL,
2214  NULL
2215 };
2216 
2217 #endif
MIB-II module.
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
char_t sysName[MIB2_SYS_NAME_SIZE]
Definition: mib2_module.h:304
uint32_t ipOutDiscards
Definition: mib2_module.h:366
uint32_t snmpInBadVersions
Definition: mib2_module.h:457
error_t mib2SetIpNetToMediaEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set ipNetToMediaEntry object value.
Definition: mib2_impl.c:740
#define MIB2_SYS_LOCATION_SIZE
Definition: mib2_module.h:127
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
error_t mib2SetSysLocation(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
uint32_t icmpOutTimestampReps
Definition: mib2_module.h:408
uint32_t icmpInEchos
Definition: mib2_module.h:392
uint32_t ipInHdrErrors
Definition: mib2_module.h:359
OID (Object Identifier)
const MibObject mib2Objects[]
MIB-II objects.
Definition: mib2_module.c:65
int32_t sysServices
Definition: mib2_module.h:311
#define MIB2_PHYS_ADDRESS_SIZE
Definition: mib2_module.h:141
#define MIB2_SYS_DESCR_SIZE
Definition: mib2_module.h:99
uint32_t snmpOutPkts
Definition: mib2_module.h:456
uint32_t snmpOutGetNexts
Definition: mib2_module.h:478
uint32_t ipReasmReqds
Definition: mib2_module.h:369
#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
uint32_t icmpInTimestamps
Definition: mib2_module.h:394
const MibModule mib2Module
MIB-II module.
Definition: mib2_module.c:2203
uint32_t snmpInPkts
Definition: mib2_module.h:455
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
error_t mib2GetSysContact(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
error_t mib2GetTcpCurrEstab(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get tcpCurrEstab object value.
Definition: mib2_impl.c:979
size_t sysObjectIDLen
Definition: mib2_module.h:296
uint32_t icmpOutTimeExcds
Definition: mib2_module.h:401
Mib2IcmpGroup icmpGroup
Definition: mib2_module.h:496
uint32_t snmpInASNParseErrs
Definition: mib2_module.h:460
int32_t ipReasmTimeout
Definition: mib2_module.h:368
uint32_t icmpOutAddrMaskReps
Definition: mib2_module.h:410
error_t mib2GetNextIpNetToMediaEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
Get next ipNetToMediaEntry object.
Definition: mib2_impl.c:858
error_t mib2GetIpNetToMediaEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get ipNetToMediaEntry object value.
Definition: mib2_impl.c:758
error_t mib2GetIfEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get ifEntry object value.
Definition: mib2_impl.c:204
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
error_t mib2GetSysName(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Mib2TcpGroup tcpGroup
Definition: mib2_module.h:499
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
Mib2UdpGroup udpGroup
Definition: mib2_module.h:502
uint32_t icmpOutDestUnreachs
Definition: mib2_module.h:400
uint32_t icmpInErrors
Definition: mib2_module.h:386
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
uint32_t icmpInSrcQuenchs
Definition: mib2_module.h:390
#define ASN1_CLASS_UNIVERSAL
Definition: asn1.h:48
#define MIB2_SYS_CONTACT_SIZE
Definition: mib2_module.h:113
uint32_t ipFragOKs
Definition: mib2_module.h:372
error_t mib2GetUdpEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get udpEntry object value.
Definition: mib2_impl.c:1371
uint32_t icmpInTimeExcds
Definition: mib2_module.h:388
error_t mib2GetSysUpTime(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get sysUpTime object value.
Definition: mib2_impl.c:161
uint32_t ipInUnknownProtos
Definition: mib2_module.h:362
uint32_t icmpInTimestampReps
Definition: mib2_module.h:395
General definitions for cryptographic algorithms.
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 snmpOutTooBigs
Definition: mib2_module.h:473
error_t mib2GetSysObjectID(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
uint32_t snmpInGetNexts
Definition: mib2_module.h:469
uint32_t snmpInBadCommunityUses
Definition: mib2_module.h:459
MIB module.
Definition: mib_common.h:287
error_t mib2GetSysLocation(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
error_t mib2SetSysName(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
uint32_t tcpInSegs
Definition: mib2_module.h:428
uint32_t icmpOutMsgs
Definition: mib2_module.h:398
size_t sysLocationLen
Definition: mib2_module.h:309
uint32_t icmpOutRedirects
Definition: mib2_module.h:404
error_t mib2GetSysDescr(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
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
MIB-II module implementation.
uint32_t icmpInAddrMaskReps
Definition: mib2_module.h:397
Mib2IpGroup ipGroup
Definition: mib2_module.h:495
error_t mib2GetNextUdpEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
Get next udpEntry object.
Definition: mib2_impl.c:1479
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
error_t mib2SetIfEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set ifEntry object value.
Definition: mib2_impl.c:186
error_t mib2GetNextTcpConnEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
Get next tcpConnEntry object.
Definition: mib2_impl.c:1216
uint32_t ipInReceives
Definition: mib2_module.h:358
char_t sysDescr[MIB2_SYS_DESCR_SIZE]
Definition: mib2_module.h:291
uint32_t icmpOutParmProbs
Definition: mib2_module.h:402
int32_t tcpMaxConn
Definition: mib2_module.h:423
#define MibObject
Definition: mib_common.h:46
error_t mib2GetIpAddrEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get ipAddrEntry object value.
Definition: mib2_impl.c:534
uint32_t icmpOutSrcQuenchs
Definition: mib2_module.h:403
uint32_t udpInErrors
Definition: mib2_module.h:444
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
char_t sysLocation[MIB2_SYS_LOCATION_SIZE]
Definition: mib2_module.h:308
Mib2Base mib2Base
MIB-II base.
Definition: mib2_module.c:58
size_t sysNameLen
Definition: mib2_module.h:305
#define MIB2_IF_SPECIFIC_SIZE
Definition: mib2_module.h:134
error_t mib2GetTcpConnEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get tcpConnEntry object value.
Definition: mib2_impl.c:1048
error_t mib2Init(void)
MIB-II module initialization.
Definition: mib2_impl.c:50
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
uint8_t sysObjectID[MIB2_SYS_OBJECT_ID_SIZE]
Definition: mib2_module.h:295
error_t mib2GetNextIpAddrEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
Get next ipAddrEntry object.
Definition: mib2_impl.c:640
TCP/IP stack core.
char_t sysContact[MIB2_SYS_CONTACT_SIZE]
Definition: mib2_module.h:300
uint32_t icmpOutEchos
Definition: mib2_module.h:405
uint32_t snmpInBadCommunityNames
Definition: mib2_module.h:458
uint32_t tcpActiveOpens
Definition: mib2_module.h:424
uint32_t ipInDelivers
Definition: mib2_module.h:364
error_t mib2GetNextIfEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
Get next ifEntry object.
Definition: mib2_impl.c:479
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
error_t mib2SetSysContact(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
uint32_t icmpInParmProbs
Definition: mib2_module.h:389
#define ASN1_CLASS_APPLICATION
Definition: asn1.h:49
uint32_t snmpOutTraps
Definition: mib2_module.h:481
#define MIB2_IP_ADDRESS_SIZE
Definition: mib2_module.h:148
Mib2SnmpGroup snmpGroup
Definition: mib2_module.h:504
uint32_t ipRoutingDiscards
Definition: mib2_module.h:375
size_t sysDescrLen
Definition: mib2_module.h:292
error_t mib2SetTcpConnEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set tcpConnEntry object value.
Definition: mib2_impl.c:1030
Debugging facilities.
ASN.1 (Abstract Syntax Notation One)
uint32_t tcpPassiveOpens
Definition: mib2_module.h:425
#define arraysize(a)
Definition: os_port.h:70
uint32_t snmpOutBadValues
Definition: mib2_module.h:475