Bridge MIB module implementation. More...
#include "core/net.h"
#include "mibs/mib_common.h"
#include "mibs/bridge_mib_module.h"
#include "mibs/bridge_mib_impl.h"
#include "core/crypto.h"
#include "encoding/asn1.h"
#include "encoding/oid.h"
#include "stp/stp.h"
#include "stp/stp_mgmt.h"
#include "stp/stp_misc.h"
#include "rstp/rstp.h"
#include "rstp/rstp_mgmt.h"
#include "rstp/rstp_misc.h"
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | TRACE_LEVEL SNMP_TRACE_LEVEL |
Functions | |
error_t | bridgeMibInit (void) |
Bridge MIB module initialization. More... | |
error_t | bridgeMibSetStpBridgeContext (StpBridgeContext *context) |
Attach STP bridge context. More... | |
error_t | bridgeMibSetRstpBridgeContext (RstpBridgeContext *context) |
Attach RSTP bridge context. More... | |
uint_t | bridgeMibGetNumPorts (void) |
Get the number of ports. More... | |
uint_t | bridgeMibGetPortIndex (uint16_t portNum) |
Get the port index that matches the specified port number. More... | |
uint16_t | bridgeMibGetPortNum (uint16_t portIndex) |
Get the port number that matches the specified port index. More... | |
Detailed Description
Bridge MIB module implementation.
Bridge MIB module implementation (dot1dTp subtree)
Bridge MIB module implementation (dot1dStp subtree)
Bridge MIB module implementation (dot1dStatic subtree)
Bridge MIB module implementation (dot1dBase subtree)
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2019-2024 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneSTP Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version
- 2.4.4
Definition in file bridge_mib_impl.c.
Macro Definition Documentation
◆ TRACE_LEVEL
#define TRACE_LEVEL SNMP_TRACE_LEVEL |
Definition at line 32 of file bridge_mib_impl.c.
Function Documentation
◆ bridgeMibGetNumPorts()
uint_t bridgeMibGetNumPorts | ( | void | ) |
◆ bridgeMibGetPortIndex()
uint_t bridgeMibGetPortIndex | ( | uint16_t | portNum | ) |
Get the port index that matches the specified port number.
- Parameters
-
[in] portNum Port number
- Returns
- Port index
Definition at line 181 of file bridge_mib_impl.c.
◆ bridgeMibGetPortNum()
uint16_t bridgeMibGetPortNum | ( | uint16_t | portIndex | ) |
Get the port number that matches the specified port index.
- Parameters
-
[in] portIndex Port index
- Returns
- Port number
Definition at line 240 of file bridge_mib_impl.c.
◆ bridgeMibInit()
error_t bridgeMibInit | ( | void | ) |
Bridge MIB module initialization.
- Returns
- Error code
Definition at line 59 of file bridge_mib_impl.c.
◆ bridgeMibSetRstpBridgeContext()
error_t bridgeMibSetRstpBridgeContext | ( | RstpBridgeContext * | context | ) |
Attach RSTP bridge context.
- Parameters
-
[in] context Pointer to the RSTP bridge context
- Returns
- Error code
Definition at line 113 of file bridge_mib_impl.c.
◆ bridgeMibSetStpBridgeContext()
error_t bridgeMibSetStpBridgeContext | ( | StpBridgeContext * | context | ) |
Attach STP bridge context.
- Parameters
-
[in] context Pointer to the STP bridge context
- Returns
- Error code
Definition at line 83 of file bridge_mib_impl.c.