rstp.h
Go to the documentation of this file.
297 uint_t bridgeForwardDelay; ///<Delay used by STP bridges to transition Root and Designated ports to Forwarding (17.13.5)
298 uint_t bridgeHelloTime; ///<Interval between periodic transmissions of Configuration messages by Designated ports (17.13.6)
299 uint_t bridgeMaxAge; ///<Maximum age of the information transmitted by the bridge when it is the Root bridge (17.13.8)
313 RstpAdminPointToPointMac adminPointToPointMac; ///<Administrative state of the point-to-point status (6.4.3)
359 RstpPriority designatedPriority; ///<First four components of the designated priority vector value (17.19.4)
360 RstpTimes designatedTimes; ///<Set of timer parameter values used to update Port Times (17.19.5)
362 bool_t fdbFlush; ///<Instruct the filtering database to remove all entries for this port (17.19.7)
365 RstpInfoIs infoIs; ///<Origin/state of the port's Spanning Tree information held for the port (17.19.10)
368 bool_t mcheck; ///<Force PPM state machine to transmit RST BPDUs for a MigrateTime period (17.19.13)
376 RstpPriority portPriority; ///<First four components of the port priority vector value (17.19.21)
396 bool_t tcAck; ///<Set if a Configuration message with a TC ACK flag is to be transmitted (17.19.41)
433 RstpPriority rootPriority; ///<First four components of the bridge's root priority vector (17.18.6)
uint_t bridgeHelloTime
Interval between periodic transmissions of Configuration messages by Designated ports (17....
Definition: rstp.h:298
error_t rstpSetAutoEdgePort(RstpBridgeContext *context, uint_t portIndex, bool_t value)
Set AutoEdgePort parameter.
Definition: rstp.c:1368
error_t rstpGetOperPointToPointMac(RstpBridgeContext *context, uint_t portIndex, bool_t *value)
Get the operational point-to-point status of the LAN segment.
Definition: rstp.c:1725
error_t rstpGetPortDesignatedCost(RstpBridgeContext *context, uint_t portIndex, uint32_t *value)
Get the designated cost of the port.
Definition: rstp.c:1963
error_t rstpGetAdminPortState(RstpBridgeContext *context, uint_t portIndex, bool_t *value)
Get the administrative port state.
Definition: rstp.c:1553
error_t rstpSetAgeingTime(RstpBridgeContext *context, uint_t value)
Set Ageing Time parameter.
Definition: rstp.c:509
error_t rstpSetProtocolMigration(RstpBridgeContext *context, uint_t portIndex, bool_t value)
Force protocol migration.
Definition: rstp.c:1403
error_t rstpGetForwardDelay(RstpBridgeContext *context, uint_t *value)
Get the current Forward Delay value.
Definition: rstp.c:988
RstpTimes designatedTimes
Set of timer parameter values used to update Port Times (17.19.5)
Definition: rstp.h:360
error_t rstpGetPortAddr(RstpBridgeContext *context, uint_t portIndex, MacAddr *value)
Get the MAC address assigned to the port.
Definition: rstp.c:1485
RstpAdminPointToPointMac adminPointToPointMac
Administrative state of the point-to-point status (6.4.3)
Definition: rstp.h:313
Topology change state machine (TCM)
error_t rstpGetPortDesignatedRoot(RstpBridgeContext *context, uint_t portIndex, StpBridgeId *value)
Get the bridge identifier of the designated root bridge.
Definition: rstp.c:1929
error_t rstpGetTopologyChanges(RstpBridgeContext *context, uint_t *value)
Get the number of topology changes.
Definition: rstp.c:1020
bool_t tcAck
Set if a Configuration message with a TC ACK flag is to be transmitted (17.19.41)
Definition: rstp.h:396
error_t rstpGetAdminPortPathCost(RstpBridgeContext *context, uint_t portIndex, uint32_t *value)
Get the administrative port path cost.
Definition: rstp.c:1621
error_t rstpGetBridgeMaxAge(RstpBridgeContext *context, uint_t *value)
Get the assigned value of the Bridge Max Age parameter.
Definition: rstp.c:669
error_t rstpGetPortPathCost(RstpBridgeContext *context, uint_t portIndex, uint32_t *value)
Get the current value of the port path cost.
Definition: rstp.c:1655
void rstpGetDefaultSettings(RstpBridgeSettings *settings)
Initialize settings with default values.
Definition: rstp.c:51
Port Protocol Migration state machine (PPM)
RstpPriority rootPriority
First four components of the bridge's root priority vector (17.18.6)
Definition: rstp.h:433
error_t rstpGetMacOperState(RstpBridgeContext *context, uint_t portIndex, bool_t *value)
Get the current MAC operational state.
Definition: rstp.c:1587
error_t rstpSetTxHoldCount(RstpBridgeContext *context, uint_t value)
Set Transmit Hold Count parameter.
Definition: rstp.c:477
error_t rstpGetTimeSinceTopologyChange(RstpBridgeContext *context, uint_t *value)
Get the time since a topology change was last detected.
Definition: rstp.c:1052
error_t rstpGetBridgeForwardDelay(RstpBridgeContext *context, uint_t *value)
Get the assigned value of the Bridge Forward Delay parameter.
Definition: rstp.c:733
error_t rstpGetAgeingTime(RstpBridgeContext *context, uint_t *value)
Get the assigned value of the Ageing Time parameter.
Definition: rstp.c:797
uint_t bridgeForwardDelay
Delay used by STP bridges to transition Root and Designated ports to Forwarding (17....
Definition: rstp.h:297
bool_t tcProp
Set if a topology change should be propagated through this port (17.19.42)
Definition: rstp.h:397
error_t rstpSetBridgeMaxAge(RstpBridgeContext *context, uint_t value)
Set Bridge Max Age parameter.
Definition: rstp.c:381
error_t rstpGetRootPathCost(RstpBridgeContext *context, uint32_t *value)
Get the current cost of the path to the root.
Definition: rstp.c:861
error_t rstpGetRootPort(RstpBridgeContext *context, uint16_t *value)
Get the current root port.
Definition: rstp.c:893
STP common definitions.
@ RSTP_RCVD_INFO_INFERIOR_ROOT_ALTERNATE
Definition: rstp.h:232
error_t rstpSetBridgeForwardDelay(RstpBridgeContext *context, uint_t value)
Set Bridge Forward Delay parameter.
Definition: rstp.c:445
RstpInfoIs infoIs
Origin/state of the port's Spanning Tree information held for the port (17.19.10)
Definition: rstp.h:365
uint_t bridgeMaxAge
Maximum age of the information transmitted by the bridge when it is the Root bridge (17....
Definition: rstp.h:299
error_t rstpGetPortDesignatedPort(RstpBridgeContext *context, uint_t portIndex, uint16_t *value)
Get the port identifier of the designated bridge.
Definition: rstp.c:2031
RstpPriority portPriority
First four components of the port priority vector value (17.19.21)
Definition: rstp.h:376
error_t rstpGetBridgeHelloTime(RstpBridgeContext *context, uint_t *value)
Get the assigned value of the Bridge Hello Time parameter.
Definition: rstp.c:701
bool_t rcvdBpdu
A valid Configuration, TCN or RST BPDU is received on the port (17.19.25)
Definition: rstp.h:380
bool_t fdbFlush
Instruct the filtering database to remove all entries for this port (17.19.7)
Definition: rstp.h:362
error_t rstpGetPortNum(RstpBridgeContext *context, uint_t portIndex, uint16_t *value)
Get the port number assigned to the port.
Definition: rstp.c:1437
Port Transmit state machine (PTX)
error_t rstpSetBridgeHelloTime(RstpBridgeContext *context, uint_t value)
Set Bridge Hello Time parameter.
Definition: rstp.c:413
error_t rstpGetOperEdgePort(RstpBridgeContext *context, uint_t portIndex, bool_t *value)
Get the operational value of the Edge Port parameter.
Definition: rstp.c:1827
Port Information state machine (PIM)
Port Role Transition state machine (PRT)
error_t rstpSetAdminEdgePort(RstpBridgeContext *context, uint_t portIndex, bool_t value)
Set administrative value of the Edge Port parameter.
Definition: rstp.c:1335
error_t rstpGetAutoEdgePort(RstpBridgeContext *context, uint_t portIndex, bool_t *value)
Get the value of the AutoEdgePort parameter.
Definition: rstp.c:1793
error_t rstpSetBridgePriority(RstpBridgeContext *context, uint16_t value)
Set bridge priority.
Definition: rstp.c:349
error_t rstpSetAdminPortPathCost(RstpBridgeContext *context, uint_t portIndex, uint32_t value)
Set administrative port path cost.
Definition: rstp.c:1266
error_t rstpGetAdminEdgePort(RstpBridgeContext *context, uint_t portIndex, bool_t *value)
Get the administrative value of the Edge Port parameter.
Definition: rstp.c:1759
error_t rstpGetBridgeAddr(RstpBridgeContext *context, MacAddr *value)
Get the MAC address assigned to the bridge.
Definition: rstp.c:605
error_t rstpSetPortPriority(RstpBridgeContext *context, uint_t portIndex, uint8_t value)
Set port priority.
Definition: rstp.c:1198
uint_t transmitHoldCount
Value used to limit the maximum transmission rate (17.13.12)
Definition: rstp.h:301
error_t rstpSetPortAddr(RstpBridgeContext *context, uint_t portIndex, const MacAddr *value)
Set port address.
Definition: rstp.c:1147
error_t rstpInit(RstpBridgeContext *context, RstpBridgeSettings *settings)
Initialize RSTP bridge context.
Definition: rstp.c:70
Port Receive state machine (PRX)
uint_t forwardTransitions
Number of times the port has transitioned to Forwarding state.
Definition: rstp.h:336
Port Role Selection state machine (PRS)
error_t rstpSetVersion(RstpBridgeContext *context, uint_t value)
Set protocol version.
Definition: rstp.c:317
error_t rstpGetTxHoldCount(RstpBridgeContext *context, uint_t *value)
Get the assigned value of the Transmit Hold Count parameter.
Definition: rstp.c:765
error_t rstpGetDesignatedRoot(RstpBridgeContext *context, StpBridgeId *value)
Get the bridge identifier of the root of the spanning tree.
Definition: rstp.c:829
error_t rstpGetBridgePriority(RstpBridgeContext *context, uint16_t *value)
Get the assigned bridge priority.
Definition: rstp.c:637
error_t rstpGetHelloTime(RstpBridgeContext *context, uint_t *value)
Get the current Hello Time value.
Definition: rstp.c:957
error_t rstpGetNumPorts(RstpBridgeContext *context, uint_t *value)
Get the number of ports.
Definition: rstp.c:541
error_t rstpGetPortRole(RstpBridgeContext *context, uint_t portIndex, StpPortRole *value)
Get the assigned role of the port.
Definition: rstp.c:1895
Port State Transition state machine (PST)
bool_t updtInfo
Set to tell that portPriority and portTimes should be updated (17.19.45)
Definition: rstp.h:400
bool_t mcheck
Force PPM state machine to transmit RST BPDUs for a MigrateTime period (17.19.13)
Definition: rstp.h:368
RstpRcvdInfo rcvdInfo
State of the received Spanning Tree information (17.19.26)
Definition: rstp.h:381
RstpPriority designatedPriority
First four components of the designated priority vector value (17.19.4)
Definition: rstp.h:359
error_t rstpGetAdminPointToPointMac(RstpBridgeContext *context, uint_t portIndex, RstpAdminPointToPointMac *value)
Get the administrative point-to-point status of the LAN segment.
Definition: rstp.c:1690
bool_t portEnabled
Set if the port can be used transmit and receive frames (17.19.18)
Definition: rstp.h:373
error_t rstpGetForwardTransitions(RstpBridgeContext *context, uint_t portIndex, uint_t *value)
Get the number of times the port has transitioned to Forwarding state.
Definition: rstp.c:2065
Port Timers state machine (PTI)
error_t rstpSetAdminPointToPointMac(RstpBridgeContext *context, uint_t portIndex, RstpAdminPointToPointMac value)
Set administrative point-to-point status of the LAN segment.
Definition: rstp.c:1301
bool_t operPointToPointMac
The MAC is connected to a point-to-point LAN (6.4.3)
Definition: rstp.h:335
uint_t migrateTime
Initial value of the mdelayWhile and edgeDelayWhile timers (17.13.9)
Definition: rstp.h:300
error_t rstpGetPortPriority(RstpBridgeContext *context, uint_t portIndex, uint8_t *value)
Get the priority assigned to the port.
Definition: rstp.c:1519
Bridge Detection state machine (BDM)
error_t rstpSetAdminPortState(RstpBridgeContext *context, uint_t portIndex, bool_t value)
Set administrative bridge port state.
Definition: rstp.c:1232
error_t rstpGetMaxAge(RstpBridgeContext *context, uint_t *value)
Get the current Max Age value.
Definition: rstp.c:925
RstpTimes portTimes
Set of timer parameter values used in transmitted BPDUs (17.19.22)
Definition: rstp.h:377
uint_t forceProtocolVersion
Force Protocol Version parameter for the bridge (17.13.4)
Definition: rstp.h:296
BPDU processing.
error_t rstpGetPortDesignatedBridge(RstpBridgeContext *context, uint_t portIndex, StpBridgeId *value)
Get the bridge identifier of the designated bridge.
Definition: rstp.c:1997
error_t rstpGetVersion(RstpBridgeContext *context, uint_t *value)
Get assigned protocol version.
Definition: rstp.c:573
RstpTimes msgTimes
Set of timer parameter values conveyed in a received BPDU (17.19.15)
Definition: rstp.h:370
error_t rstpGetPortState(RstpBridgeContext *context, uint_t portIndex, StpPortState *value)
Get the current state of the port.
Definition: rstp.c:1861
error_t rstpSetPortNum(RstpBridgeContext *context, uint_t portIndex, uint16_t value)
Set port number.
Definition: rstp.c:1086
RstpPriority msgPriority
First four components of the message priority vector (17.19.14)
Definition: rstp.h:369