stp_conditions.c
const uint8_t res[]
STP (Spanning Tree Protocol)
bool_t stpRootPort(StpBridgePort *port)
Test whether a given port is the Root port for the bridge.
Definition: stp_conditions.c:112
int_t stpComparePortNum(uint16_t portId1, uint16_t portId2)
Compare port numbers.
Definition: stp_misc.c:244
bool_t stpSupersedesPortInfo(StpBridgePort *port, const StpBpdu *bpdu)
Check whether the protocol information supersedes that already held for a port.
Definition: stp_conditions.c:174
bool_t stpRootBridge(StpBridgeContext *context)
Test whether the bridge is the Root bridge.
Definition: stp_conditions.c:50
STP algorithm conditions.
STP helper functions.
bool_t stpDesignatedBridge(StpBridgeContext *context)
Test whether the bridge is the Designated bridge for at least one LAN.
Definition: stp_conditions.c:77
bool_t stpDesignatedPort(StpBridgePort *port)
Test whether a given port is a Designated port.
Definition: stp_conditions.c:138
int_t stpCompareBridgeId(const StpBridgeId *id1, const StpBridgeId *id2)
Compare bridge identifiers.
Definition: stp_misc.c:296
Debugging facilities.