stp_procedures.c
Go to the documentation of this file.
Debugging facilities.
STP (Spanning Tree Protocol)
error_t stpSendBpdu(StpBridgePort *port, const StpBpdu *bpdu, size_t length)
Send bridge protocol data unit.
Definition: stp_bpdu.c:186
BPDU processing.
bool_t stpRootPort(StpBridgePort *port)
Test whether a given port is the Root port for the bridge.
Definition: stp_conditions.c:112
bool_t stpDesignatedPort(StpBridgePort *port)
Test whether a given port is a Designated port.
Definition: stp_conditions.c:138
bool_t stpRootBridge(StpBridgeContext *context)
Test whether the bridge is the Root bridge.
Definition: stp_conditions.c:50
STP algorithm conditions.
void stpUpdateTopologyChange(StpBridgeContext *context, bool_t value)
Set the Topology Change flag.
Definition: stp_misc.c:325
void stpUpdateAgeingTime(StpBridgeContext *context, uint32_t ageingTime)
Set ageing time for dynamic filtering entries.
Definition: stp_misc.c:427
StpBridgePort * stpGetBridgePort(StpBridgeContext *context, uint16_t portId)
Retrieve the port that matches the specified port number.
Definition: stp_misc.c:212
void stpUpdatePortState(StpBridgePort *port, StpPortState state)
Set port state.
Definition: stp_misc.c:358
int_t stpCompareBridgeId(const StpBridgeId *id1, const StpBridgeId *id2)
Compare bridge identifiers.
Definition: stp_misc.c:296
STP helper functions.
void stpAckTopologyChange(StpBridgePort *port)
Acknowledge topology change (8.6.16)
Definition: stp_procedures.c:749
void stpBecomeDesignatedPort(StpBridgePort *port)
Become Designated port (8.6.10)
Definition: stp_procedures.c:575
void stpTransmitConfigBpdu(StpBridgePort *port)
Transmit Configuration BPDU (8.6.1)
Definition: stp_procedures.c:135
void stpTransmitTcnBpdu(StpBridgeContext *context)
Transmit Topology Change Notification BPDU (8.6.6)
Definition: stp_procedures.c:351
void stpRecordConfigInfo(StpBridgePort *port, const StpBpdu *bpdu)
Record configuration information (8.6.2)
Definition: stp_procedures.c:252
void stpRootSelection(StpBridgeContext *context)
Root selection (8.6.8)
Definition: stp_procedures.c:397
void stpRecordConfigTimeoutValues(StpBridgeContext *context, const StpBpdu *bpdu)
Record configuration timeout values (8.6.3)
Definition: stp_procedures.c:277
void stpReplyToConfigBpdu(StpBridgePort *port)
Reply to Configuration BPDU (8.6.5)
Definition: stp_procedures.c:338
void stpDesignatedPortSelection(StpBridgeContext *context)
Designated port selection (8.6.9)
Definition: stp_procedures.c:512
void stpTopologyChangeDetection(StpBridgeContext *context)
Topology change detection (8.6.14)
Definition: stp_procedures.c:703
void stpConfigUpdate(StpBridgeContext *context)
Configuration update (8.6.7)
Definition: stp_procedures.c:379
void stpPortStateSelection(StpBridgeContext *context)
Port state selection (8.6.11)
Definition: stp_procedures.c:605
void stpConfigBpduGeneration(StpBridgeContext *context)
Configuration BPDU generation (8.6.4)
Definition: stp_procedures.c:305
void stpTopologyChangeAcked(StpBridgeContext *context)
Topology change acknowledged (8.6.15)
Definition: stp_procedures.c:735
Elements of procedures.