|
void | rstpGetDefaultSettings (RstpBridgeSettings *settings) |
| Initialize settings with default values. More...
|
|
error_t | rstpInit (RstpBridgeContext *context, RstpBridgeSettings *settings) |
| Initialize RSTP bridge context. More...
|
|
error_t | rstpStart (RstpBridgeContext *context) |
| Start RSTP bridge operation. More...
|
|
error_t | rstpStop (RstpBridgeContext *context) |
| Stop RSTP bridge operation. More...
|
|
error_t | rstpSetVersion (RstpBridgeContext *context, uint_t value) |
| Set protocol version. More...
|
|
error_t | rstpSetBridgePriority (RstpBridgeContext *context, uint16_t value) |
| Set bridge priority. More...
|
|
error_t | rstpSetBridgeMaxAge (RstpBridgeContext *context, uint_t value) |
| Set Bridge Max Age parameter. More...
|
|
error_t | rstpSetBridgeHelloTime (RstpBridgeContext *context, uint_t value) |
| Set Bridge Hello Time parameter. More...
|
|
error_t | rstpSetBridgeForwardDelay (RstpBridgeContext *context, uint_t value) |
| Set Bridge Forward Delay parameter. More...
|
|
error_t | rstpSetTxHoldCount (RstpBridgeContext *context, uint_t value) |
| Set Transmit Hold Count parameter. More...
|
|
error_t | rstpSetAgeingTime (RstpBridgeContext *context, uint_t value) |
| Set Ageing Time parameter. More...
|
|
error_t | rstpGetNumPorts (RstpBridgeContext *context, uint_t *value) |
| Get the number of ports. More...
|
|
error_t | rstpGetVersion (RstpBridgeContext *context, uint_t *value) |
| Get assigned protocol version. More...
|
|
error_t | rstpGetBridgeAddr (RstpBridgeContext *context, MacAddr *value) |
| Get the MAC address assigned to the bridge. More...
|
|
error_t | rstpGetBridgePriority (RstpBridgeContext *context, uint16_t *value) |
| Get the assigned bridge priority. More...
|
|
error_t | rstpGetBridgeMaxAge (RstpBridgeContext *context, uint_t *value) |
| Get the assigned value of the Bridge Max Age parameter. More...
|
|
error_t | rstpGetBridgeHelloTime (RstpBridgeContext *context, uint_t *value) |
| Get the assigned value of the Bridge Hello Time parameter. More...
|
|
error_t | rstpGetBridgeForwardDelay (RstpBridgeContext *context, uint_t *value) |
| Get the assigned value of the Bridge Forward Delay parameter. More...
|
|
error_t | rstpGetTxHoldCount (RstpBridgeContext *context, uint_t *value) |
| Get the assigned value of the Transmit Hold Count parameter. More...
|
|
error_t | rstpGetAgeingTime (RstpBridgeContext *context, uint_t *value) |
| Get the assigned value of the Ageing Time parameter. More...
|
|
error_t | rstpGetDesignatedRoot (RstpBridgeContext *context, StpBridgeId *value) |
| Get the bridge identifier of the root of the spanning tree. More...
|
|
error_t | rstpGetRootPathCost (RstpBridgeContext *context, uint32_t *value) |
| Get the current cost of the path to the root. More...
|
|
error_t | rstpGetRootPort (RstpBridgeContext *context, uint16_t *value) |
| Get the current root port. More...
|
|
error_t | rstpGetMaxAge (RstpBridgeContext *context, uint_t *value) |
| Get the current Max Age value. More...
|
|
error_t | rstpGetHelloTime (RstpBridgeContext *context, uint_t *value) |
| Get the current Hello Time value. More...
|
|
error_t | rstpGetForwardDelay (RstpBridgeContext *context, uint_t *value) |
| Get the current Forward Delay value. More...
|
|
error_t | rstpGetTopologyChanges (RstpBridgeContext *context, uint_t *value) |
| Get the number of topology changes. More...
|
|
error_t | rstpGetTimeSinceTopologyChange (RstpBridgeContext *context, uint_t *value) |
| Get the time since a topology change was last detected. More...
|
|
error_t | rstpSetPortNum (RstpBridgeContext *context, uint_t portIndex, uint16_t value) |
| Set port number. More...
|
|
error_t | rstpSetPortAddr (RstpBridgeContext *context, uint_t portIndex, const MacAddr *value) |
| Set port address. More...
|
|
error_t | rstpSetPortPriority (RstpBridgeContext *context, uint_t portIndex, uint8_t value) |
| Set port priority. More...
|
|
error_t | rstpSetAdminPortState (RstpBridgeContext *context, uint_t portIndex, bool_t value) |
| Set administrative bridge port state. More...
|
|
error_t | rstpSetAdminPortPathCost (RstpBridgeContext *context, uint_t portIndex, uint32_t value) |
| Set administrative port path cost. More...
|
|
error_t | rstpSetAdminPointToPointMac (RstpBridgeContext *context, uint_t portIndex, RstpAdminPointToPointMac value) |
| Set administrative point-to-point status of the LAN segment. More...
|
|
error_t | rstpSetAdminEdgePort (RstpBridgeContext *context, uint_t portIndex, bool_t value) |
| Set administrative value of the Edge Port parameter. More...
|
|
error_t | rstpSetAutoEdgePort (RstpBridgeContext *context, uint_t portIndex, bool_t value) |
| Set AutoEdgePort parameter. More...
|
|
error_t | rstpSetProtocolMigration (RstpBridgeContext *context, uint_t portIndex, bool_t value) |
| Force protocol migration. More...
|
|
error_t | rstpGetPortNum (RstpBridgeContext *context, uint_t portIndex, uint16_t *value) |
| Get the port number assigned to the port. More...
|
|
error_t | rstpGetPortAddr (RstpBridgeContext *context, uint_t portIndex, MacAddr *value) |
| Get the MAC address assigned to the port. More...
|
|
error_t | rstpGetPortPriority (RstpBridgeContext *context, uint_t portIndex, uint8_t *value) |
| Get the priority assigned to the port. More...
|
|
error_t | rstpGetAdminPortState (RstpBridgeContext *context, uint_t portIndex, bool_t *value) |
| Get the administrative port state. More...
|
|
error_t | rstpGetMacOperState (RstpBridgeContext *context, uint_t portIndex, bool_t *value) |
| Get the current MAC operational state. More...
|
|
error_t | rstpGetAdminPortPathCost (RstpBridgeContext *context, uint_t portIndex, uint32_t *value) |
| Get the administrative port path cost. More...
|
|
error_t | rstpGetPortPathCost (RstpBridgeContext *context, uint_t portIndex, uint32_t *value) |
| Get the current value of the port path cost. More...
|
|
error_t | rstpGetAdminPointToPointMac (RstpBridgeContext *context, uint_t portIndex, RstpAdminPointToPointMac *value) |
| Get the administrative point-to-point status of the LAN segment. More...
|
|
error_t | rstpGetOperPointToPointMac (RstpBridgeContext *context, uint_t portIndex, bool_t *value) |
| Get the operational point-to-point status of the LAN segment. More...
|
|
error_t | rstpGetAdminEdgePort (RstpBridgeContext *context, uint_t portIndex, bool_t *value) |
| Get the administrative value of the Edge Port parameter. More...
|
|
error_t | rstpGetAutoEdgePort (RstpBridgeContext *context, uint_t portIndex, bool_t *value) |
| Get the value of the AutoEdgePort parameter. More...
|
|
error_t | rstpGetOperEdgePort (RstpBridgeContext *context, uint_t portIndex, bool_t *value) |
| Get the operational value of the Edge Port parameter. More...
|
|
error_t | rstpGetPortState (RstpBridgeContext *context, uint_t portIndex, StpPortState *value) |
| Get the current state of the port. More...
|
|
error_t | rstpGetPortRole (RstpBridgeContext *context, uint_t portIndex, StpPortRole *value) |
| Get the assigned role of the port. More...
|
|
error_t | rstpGetPortDesignatedRoot (RstpBridgeContext *context, uint_t portIndex, StpBridgeId *value) |
| Get the bridge identifier of the designated root bridge. More...
|
|
error_t | rstpGetPortDesignatedCost (RstpBridgeContext *context, uint_t portIndex, uint32_t *value) |
| Get the designated cost of the port. More...
|
|
error_t | rstpGetPortDesignatedBridge (RstpBridgeContext *context, uint_t portIndex, StpBridgeId *value) |
| Get the bridge identifier of the designated bridge. More...
|
|
error_t | rstpGetPortDesignatedPort (RstpBridgeContext *context, uint_t portIndex, uint16_t *value) |
| Get the port identifier of the designated bridge. More...
|
|
error_t | rstpGetForwardTransitions (RstpBridgeContext *context, uint_t portIndex, uint_t *value) |
| Get the number of times the port has transitioned to Forwarding state. More...
|
|
void | rstpDeinit (RstpBridgeContext *context) |
| Release RSTP bridge context. More...
|
|
RSTP (Rapid Spanning Tree Protocol)
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.4
Definition in file rstp.c.