bridge_mib_impl.h File Reference

Bridge MIB module implementation. More...

#include "mibs/mib_common.h"
#include "stp/stp.h"
#include "rstp/rstp.h"

Go to the source code of this file.

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.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.4.0

Definition in file bridge_mib_impl.h.

Function Documentation

◆ bridgeMibGetNumPorts()

uint_t bridgeMibGetNumPorts ( void  )

Get the number of ports.

Returns
Number of ports

Definition at line 142 of file bridge_mib_impl.c.

◆ bridgeMibGetPortIndex()

uint_t bridgeMibGetPortIndex ( uint16_t  portNum)

Get the port index that matches the specified port number.

Parameters
[in]portNumPort 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]portIndexPort 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]contextPointer 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]contextPointer to the STP bridge context
Returns
Error code

Definition at line 83 of file bridge_mib_impl.c.