bridge_mib_module.c
Go to the documentation of this file.
1 /**
2  * @file bridge_mib_module.c
3  * @brief Bridge MIB module
4  *
5  * @section License
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  *
9  * Copyright (C) 2019-2024 Oryx Embedded SARL. All rights reserved.
10  *
11  * This file is part of CycloneSTP 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 2.4.4
29  **/
30 
31 //Switch to the appropriate trace level
32 #define TRACE_LEVEL SNMP_TRACE_LEVEL
33 
34 //Dependencies
35 #include "core/net.h"
36 #include "mibs/mib_common.h"
37 #include "mibs/bridge_mib_module.h"
38 #include "mibs/bridge_mib_impl.h"
43 #include "core/crypto.h"
44 #include "encoding/asn1.h"
45 #include "encoding/oid.h"
46 #include "debug.h"
47 
48 //Check TCP/IP stack configuration
49 #if (BRIDGE_MIB_SUPPORT == ENABLED)
50 
51 
52 /**
53  * @brief Bridge MIB base
54  **/
55 
57 
58 
59 /**
60  * @brief Bridge MIB objects
61  **/
62 
64 {
65  //dot1dBaseBridgeAddress object (1.3.6.1.2.1.17.1.1)
66  {
67  "dot1dBaseBridgeAddress",
68  {43, 6, 1, 2, 1, 17, 1, 1},
69  8,
73  NULL,
74  NULL,
75  0,
76  NULL,
78  NULL
79  },
80  //dot1dBaseNumPorts object (1.3.6.1.2.1.17.1.2)
81  {
82  "dot1dBaseNumPorts",
83  {43, 6, 1, 2, 1, 17, 1, 2},
84  8,
88  NULL,
89  NULL,
90  sizeof(int32_t),
91  NULL,
93  NULL
94  },
95  //dot1dBaseType object (1.3.6.1.2.1.17.1.3)
96  {
97  "dot1dBaseType",
98  {43, 6, 1, 2, 1, 17, 1, 3},
99  8,
103  NULL,
104  NULL,
105  sizeof(int32_t),
106  NULL,
108  NULL
109  },
110  //dot1dBasePort object (1.3.6.1.2.1.17.1.4.1.1)
111  {
112  "dot1dBasePort",
113  {43, 6, 1, 2, 1, 17, 1, 4, 1, 1},
114  10,
118  NULL,
119  NULL,
120  sizeof(int32_t),
121  NULL,
124  },
125  //dot1dBasePortIfIndex object (1.3.6.1.2.1.17.1.4.1.2)
126  {
127  "dot1dBasePortIfIndex",
128  {43, 6, 1, 2, 1, 17, 1, 4, 1, 2},
129  10,
133  NULL,
134  NULL,
135  sizeof(int32_t),
136  NULL,
139  },
140  //dot1dBasePortCircuit object (1.3.6.1.2.1.17.1.4.1.3)
141  {
142  "dot1dBasePortCircuit",
143  {43, 6, 1, 2, 1, 17, 1, 4, 1, 3},
144  10,
148  NULL,
149  NULL,
150  0,
151  NULL,
154  },
155  //dot1dBasePortDelayExceededDiscards object (1.3.6.1.2.1.17.1.4.1.4)
156  {
157  "dot1dBasePortDelayExceededDiscards",
158  {43, 6, 1, 2, 1, 17, 1, 4, 1, 4},
159  10,
163  NULL,
164  NULL,
165  sizeof(uint32_t),
166  NULL,
169  },
170  //dot1dBasePortMtuExceededDiscards object (1.3.6.1.2.1.17.1.4.1.5)
171  {
172  "dot1dBasePortMtuExceededDiscards",
173  {43, 6, 1, 2, 1, 17, 1, 4, 1, 5},
174  10,
178  NULL,
179  NULL,
180  sizeof(uint32_t),
181  NULL,
184  },
185  //dot1dStpProtocolSpecification object (1.3.6.1.2.1.17.2.1)
186  {
187  "dot1dStpProtocolSpecification",
188  {43, 6, 1, 2, 1, 17, 2, 1},
189  8,
193  NULL,
194  NULL,
195  sizeof(int32_t),
196  NULL,
198  NULL
199  },
200  //dot1dStpPriority object (1.3.6.1.2.1.17.2.2)
201  {
202  "dot1dStpPriority",
203  {43, 6, 1, 2, 1, 17, 2, 2},
204  8,
208  NULL,
209  NULL,
210  sizeof(int32_t),
213  NULL
214  },
215  //dot1dStpTimeSinceTopologyChange object (1.3.6.1.2.1.17.2.3)
216  {
217  "dot1dStpTimeSinceTopologyChange",
218  {43, 6, 1, 2, 1, 17, 2, 3},
219  8,
223  NULL,
224  NULL,
225  sizeof(uint32_t),
226  NULL,
228  NULL
229  },
230  //dot1dStpTopChanges object (1.3.6.1.2.1.17.2.4)
231  {
232  "dot1dStpTopChanges",
233  {43, 6, 1, 2, 1, 17, 2, 4},
234  8,
238  NULL,
239  NULL,
240  sizeof(uint32_t),
241  NULL,
243  NULL
244  },
245  //dot1dStpDesignatedRoot object (1.3.6.1.2.1.17.2.5)
246  {
247  "dot1dStpDesignatedRoot",
248  {43, 6, 1, 2, 1, 17, 2, 5},
249  8,
253  NULL,
254  NULL,
255  0,
256  NULL,
258  NULL
259  },
260  //dot1dStpRootCost object (1.3.6.1.2.1.17.2.6)
261  {
262  "dot1dStpRootCost",
263  {43, 6, 1, 2, 1, 17, 2, 6},
264  8,
268  NULL,
269  NULL,
270  sizeof(int32_t),
271  NULL,
273  NULL
274  },
275  //dot1dStpRootPort object (1.3.6.1.2.1.17.2.7)
276  {
277  "dot1dStpRootPort",
278  {43, 6, 1, 2, 1, 17, 2, 7},
279  8,
283  NULL,
284  NULL,
285  sizeof(int32_t),
286  NULL,
288  NULL
289  },
290  //dot1dStpMaxAge object (1.3.6.1.2.1.17.2.8)
291  {
292  "dot1dStpMaxAge",
293  {43, 6, 1, 2, 1, 17, 2, 8},
294  8,
298  NULL,
299  NULL,
300  sizeof(int32_t),
301  NULL,
303  NULL
304  },
305  //dot1dStpHelloTime object (1.3.6.1.2.1.17.2.9)
306  {
307  "dot1dStpHelloTime",
308  {43, 6, 1, 2, 1, 17, 2, 9},
309  8,
313  NULL,
314  NULL,
315  sizeof(int32_t),
316  NULL,
318  NULL
319  },
320  //dot1dStpHoldTime object (1.3.6.1.2.1.17.2.10)
321  {
322  "dot1dStpHoldTime",
323  {43, 6, 1, 2, 1, 17, 2, 10},
324  8,
328  NULL,
329  NULL,
330  sizeof(int32_t),
331  NULL,
333  NULL
334  },
335  //dot1dStpForwardDelay object (1.3.6.1.2.1.17.2.11)
336  {
337  "dot1dStpForwardDelay",
338  {43, 6, 1, 2, 1, 17, 2, 11},
339  8,
343  NULL,
344  NULL,
345  sizeof(int32_t),
346  NULL,
348  NULL
349  },
350  //dot1dStpBridgeMaxAge object (1.3.6.1.2.1.17.2.12)
351  {
352  "dot1dStpBridgeMaxAge",
353  {43, 6, 1, 2, 1, 17, 2, 12},
354  8,
358  NULL,
359  NULL,
360  sizeof(int32_t),
363  NULL
364  },
365  //dot1dStpBridgeHelloTime object (1.3.6.1.2.1.17.2.13)
366  {
367  "dot1dStpBridgeHelloTime",
368  {43, 6, 1, 2, 1, 17, 2, 13},
369  8,
373  NULL,
374  NULL,
375  sizeof(int32_t),
378  NULL
379  },
380  //dot1dStpBridgeForwardDelay object (1.3.6.1.2.1.17.2.14)
381  {
382  "dot1dStpBridgeForwardDelay",
383  {43, 6, 1, 2, 1, 17, 2, 14},
384  8,
388  NULL,
389  NULL,
390  sizeof(int32_t),
393  NULL
394  },
395  //dot1dStpPort object (1.3.6.1.2.1.17.2.15.1.1)
396  {
397  "dot1dStpPort",
398  {43, 6, 1, 2, 1, 17, 2, 15, 1, 1},
399  10,
403  NULL,
404  NULL,
405  sizeof(int32_t),
406  NULL,
409  },
410  //dot1dStpPortPriority object (1.3.6.1.2.1.17.2.15.1.2)
411  {
412  "dot1dStpPortPriority",
413  {43, 6, 1, 2, 1, 17, 2, 15, 1, 2},
414  10,
418  NULL,
419  NULL,
420  sizeof(int32_t),
424  },
425  //dot1dStpPortState object (1.3.6.1.2.1.17.2.15.1.3)
426  {
427  "dot1dStpPortState",
428  {43, 6, 1, 2, 1, 17, 2, 15, 1, 3},
429  10,
433  NULL,
434  NULL,
435  sizeof(int32_t),
436  NULL,
439  },
440  //dot1dStpPortEnable object (1.3.6.1.2.1.17.2.15.1.4)
441  {
442  "dot1dStpPortEnable",
443  {43, 6, 1, 2, 1, 17, 2, 15, 1, 4},
444  10,
448  NULL,
449  NULL,
450  sizeof(int32_t),
454  },
455  //dot1dStpPortPathCost object (1.3.6.1.2.1.17.2.15.1.5)
456  {
457  "dot1dStpPortPathCost",
458  {43, 6, 1, 2, 1, 17, 2, 15, 1, 5},
459  10,
463  NULL,
464  NULL,
465  sizeof(int32_t),
469  },
470  //dot1dStpPortDesignatedRoot object (1.3.6.1.2.1.17.2.15.1.6)
471  {
472  "dot1dStpPortDesignatedRoot",
473  {43, 6, 1, 2, 1, 17, 2, 15, 1, 6},
474  10,
478  NULL,
479  NULL,
480  0,
481  NULL,
484  },
485  //dot1dStpPortDesignatedCost object (1.3.6.1.2.1.17.2.15.1.7)
486  {
487  "dot1dStpPortDesignatedCost",
488  {43, 6, 1, 2, 1, 17, 2, 15, 1, 7},
489  10,
493  NULL,
494  NULL,
495  sizeof(int32_t),
496  NULL,
499  },
500  //dot1dStpPortDesignatedBridge object (1.3.6.1.2.1.17.2.15.1.8)
501  {
502  "dot1dStpPortDesignatedBridge",
503  {43, 6, 1, 2, 1, 17, 2, 15, 1, 8},
504  10,
508  NULL,
509  NULL,
510  0,
511  NULL,
514  },
515  //dot1dStpPortDesignatedPort object (1.3.6.1.2.1.17.2.15.1.9)
516  {
517  "dot1dStpPortDesignatedPort",
518  {43, 6, 1, 2, 1, 17, 2, 15, 1, 9},
519  10,
523  NULL,
524  NULL,
525  0,
526  NULL,
529  },
530  //dot1dStpPortForwardTransitions object (1.3.6.1.2.1.17.2.15.1.10)
531  {
532  "dot1dStpPortForwardTransitions",
533  {43, 6, 1, 2, 1, 17, 2, 15, 1, 10},
534  10,
538  NULL,
539  NULL,
540  sizeof(uint32_t),
541  NULL,
544  },
545  //dot1dStpPortPathCost32 object (1.3.6.1.2.1.17.2.15.1.11)
546  {
547  "dot1dStpPortPathCost32",
548  {43, 6, 1, 2, 1, 17, 2, 15, 1, 11},
549  10,
553  NULL,
554  NULL,
555  sizeof(int32_t),
559  },
560  //dot1dTpLearnedEntryDiscards object (1.3.6.1.2.1.17.4.1)
561  {
562  "dot1dTpLearnedEntryDiscards",
563  {43, 6, 1, 2, 1, 17, 4, 1},
564  8,
568  NULL,
569  NULL,
570  sizeof(uint32_t),
571  NULL,
573  NULL
574  },
575  //dot1dTpAgingTime object (1.3.6.1.2.1.17.4.2)
576  {
577  "dot1dTpAgingTime",
578  {43, 6, 1, 2, 1, 17, 4, 2},
579  8,
583  NULL,
584  NULL,
585  sizeof(int32_t),
588  NULL
589  },
590  //dot1dTpFdbAddress object (1.3.6.1.2.1.17.4.3.1.1)
591  {
592  "dot1dTpFdbAddress",
593  {43, 6, 1, 2, 1, 17, 4, 3, 1, 1},
594  10,
598  NULL,
599  NULL,
600  0,
601  NULL,
604  },
605  //dot1dTpFdbPort object (1.3.6.1.2.1.17.4.3.1.2)
606  {
607  "dot1dTpFdbPort",
608  {43, 6, 1, 2, 1, 17, 4, 3, 1, 2},
609  10,
613  NULL,
614  NULL,
615  sizeof(int32_t),
616  NULL,
619  },
620  //dot1dTpFdbStatus object (1.3.6.1.2.1.17.4.3.1.3)
621  {
622  "dot1dTpFdbStatus",
623  {43, 6, 1, 2, 1, 17, 4, 3, 1, 3},
624  10,
628  NULL,
629  NULL,
630  sizeof(int32_t),
631  NULL,
634  },
635  //dot1dTpPort object (1.3.6.1.2.1.17.4.4.1.1)
636  {
637  "dot1dTpPort",
638  {43, 6, 1, 2, 1, 17, 4, 4, 1, 1},
639  10,
643  NULL,
644  NULL,
645  sizeof(int32_t),
646  NULL,
649  },
650  //dot1dTpPortMaxInfo object (1.3.6.1.2.1.17.4.4.1.2)
651  {
652  "dot1dTpPortMaxInfo",
653  {43, 6, 1, 2, 1, 17, 4, 4, 1, 2},
654  10,
658  NULL,
659  NULL,
660  sizeof(int32_t),
661  NULL,
664  },
665  //dot1dTpPortInFrames object (1.3.6.1.2.1.17.4.4.1.3)
666  {
667  "dot1dTpPortInFrames",
668  {43, 6, 1, 2, 1, 17, 4, 4, 1, 3},
669  10,
673  NULL,
674  NULL,
675  sizeof(uint32_t),
676  NULL,
679  },
680  //dot1dTpPortOutFrames object (1.3.6.1.2.1.17.4.4.1.4)
681  {
682  "dot1dTpPortOutFrames",
683  {43, 6, 1, 2, 1, 17, 4, 4, 1, 4},
684  10,
688  NULL,
689  NULL,
690  sizeof(uint32_t),
691  NULL,
694  },
695  //dot1dTpPortInDiscards object (1.3.6.1.2.1.17.4.4.1.5)
696  {
697  "dot1dTpPortInDiscards",
698  {43, 6, 1, 2, 1, 17, 4, 4, 1, 5},
699  10,
703  NULL,
704  NULL,
705  sizeof(uint32_t),
706  NULL,
709  },
710  //dot1dStaticAddress object (1.3.6.1.2.1.17.5.1.1.1)
711  {
712  "dot1dStaticAddress",
713  {43, 6, 1, 2, 1, 17, 5, 1, 1, 1},
714  10,
718  NULL,
719  NULL,
720  0,
724  },
725  //dot1dStaticReceivePort object (1.3.6.1.2.1.17.5.1.1.2)
726  {
727  "dot1dStaticReceivePort",
728  {43, 6, 1, 2, 1, 17, 5, 1, 1, 2},
729  10,
733  NULL,
734  NULL,
735  sizeof(int32_t),
739  },
740  //dot1dStaticAllowedToGoTo object (1.3.6.1.2.1.17.5.1.1.3)
741  {
742  "dot1dStaticAllowedToGoTo",
743  {43, 6, 1, 2, 1, 17, 5, 1, 1, 3},
744  10,
748  NULL,
749  NULL,
750  0,
754  },
755  //dot1dStaticStatus object (1.3.6.1.2.1.17.5.1.1.4)
756  {
757  "dot1dStaticStatus",
758  {43, 6, 1, 2, 1, 17, 5, 1, 1, 4},
759  10,
763  NULL,
764  NULL,
765  sizeof(int32_t),
769  }
770 };
771 
772 
773 /**
774  * @brief Bridge MIB module
775  **/
776 
778 {
779  "BRIDGE-MIB",
780  {43, 6, 1, 2, 1, 17},
781  6,
785  NULL,
786  NULL,
787  NULL,
788  NULL
789 };
790 
791 #endif
error_t bridgeMibSetDot1dStpBridgeMaxAge(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set dot1dStpBridgeMaxAge object value.
error_t bridgeMibSetDot1dStpBridgeForwardDelay(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set dot1dStpBridgeForwardDelay object value.
error_t bridgeMibGetDot1dStpRootPort(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpRootPort object value.
const MibObject bridgeMibObjects[]
Bridge MIB objects.
OID (Object Identifier)
error_t bridgeMibGetDot1dStpBridgeHelloTime(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpBridgeHelloTime object value.
error_t bridgeMibGetDot1dTpAgingTime(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dTpAgingTime object value.
Bridge MIB module implementation.
error_t bridgeMibSetDot1dStaticEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set dot1dStaticEntry object value.
@ MIB_ACCESS_READ_ONLY
Definition: mib_common.h:79
error_t bridgeMibGetDot1dStpTopChanges(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpTopChanges object value.
error_t bridgeMibGetNextDot1dStpPortEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
Get next dot1dStpPortEntry object.
error_t bridgeMibGetDot1dStpDesignatedRoot(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpDesignatedRoot object value.
error_t bridgeMibGetDot1dStaticEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStaticEntry object value.
error_t bridgeMibGetDot1dTpLearnedEntryDiscards(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dTpLearnedEntryDiscards object value.
error_t bridgeMibGetDot1dStpHelloTime(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpHelloTime object value.
error_t bridgeMibInit(void)
Bridge MIB module initialization.
error_t bridgeMibGetNextDot1dBasePortEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
Get next dot1dBasePortEntry object.
@ MIB_ACCESS_READ_WRITE
Definition: mib_common.h:80
error_t bridgeMibGetDot1dTpFdbEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dTpFdbEntry object value.
@ MIB_TYPE_COUNTER32
Definition: mib_common.h:61
error_t bridgeMibGetDot1dStpMaxAge(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpMaxAge object value.
#define ASN1_CLASS_UNIVERSAL
Definition: asn1.h:52
error_t bridgeMibSetDot1dStpBridgeHelloTime(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set dot1dStpBridgeHelloTime object value.
error_t bridgeMibGetDot1dStpBridgeForwardDelay(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpBridgeForwardDelay object value.
error_t bridgeMibGetDot1dStpPortEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpPortEntry object value.
General definitions for cryptographic algorithms.
error_t bridgeMibGetDot1dBaseType(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dBaseType object value.
error_t bridgeMibGetDot1dBaseNumPorts(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dBaseNumPorts object value.
error_t bridgeMibGetDot1dBaseBridgeAddress(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dBaseBridgeAddress object value.
MIB module.
Definition: mib_common.h:292
error_t bridgeMibGetDot1dStpRootCost(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpRootCost object value.
Bridge MIB base.
@ ASN1_TYPE_OCTET_STRING
Definition: asn1.h:72
@ ASN1_TYPE_INTEGER
Definition: asn1.h:70
error_t bridgeMibGetDot1dStpHoldTime(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpHoldTime object value.
@ MIB_TYPE_TIME_TICKS
Definition: mib_common.h:64
const MibModule bridgeMibModule
Bridge MIB module.
Common definitions for MIB modules.
error_t bridgeMibGetDot1dStpProtocolSpecification(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpProtocolSpecification object value.
error_t bridgeMibGetDot1dStpTimeSinceTopologyChange(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpTimeSinceTopologyChange object value.
#define MibObject
Definition: mib_common.h:46
error_t bridgeMibGetDot1dTpPortEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dTpPortEntry object value.
error_t bridgeMibGetDot1dStpForwardDelay(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpForwardDelay object value.
error_t bridgeMibGetDot1dStpBridgeMaxAge(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpBridgeMaxAge object value.
error_t bridgeMibGetDot1dBasePortEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dBasePortEntry object value.
@ ASN1_TYPE_OBJECT_IDENTIFIER
Definition: asn1.h:74
error_t bridgeMibSetDot1dStpPortEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set dot1dStpPortEntry object value.
error_t bridgeMibSetDot1dStpPriority(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set dot1dStpPriority object value.
error_t bridgeMibGetNextDot1dTpFdbEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
Get next dot1dTpFdbEntry object.
TCP/IP stack core.
error_t bridgeMibGetNextDot1dStaticEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
Get next dot1dStaticEntry object.
error_t bridgeMibSetDot1dTpAgingTime(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set dot1dTpAgingTime object value.
Bridge MIB module.
error_t bridgeMibGetNextDot1dTpPortEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
Get next dot1dTpPortEntry object.
error_t bridgeMibGetDot1dStpPriority(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpPriority object value.
#define ASN1_CLASS_APPLICATION
Definition: asn1.h:53
BridgeMibBase bridgeMibBase
Bridge MIB base.
@ MIB_ACCESS_READ_CREATE
Definition: mib_common.h:81
Debugging facilities.
ASN.1 (Abstract Syntax Notation One)
#define arraysize(a)
Definition: os_port.h:71