bridge_mib_impl_stp.c
Go to the documentation of this file.
208 error_t bridgeMibGetDot1dStpTimeSinceTopologyChange(const MibObject *object, const uint8_t *oid,
error_t stpMgmtGetAdminPortState(StpBridgeContext *context, uint_t portIndex, bool_t *value)
Get the administrative port state.
Definition: stp_mgmt.c:999
error_t rstpMgmtGetRootPort(RstpBridgeContext *context, uint16_t *value)
Get the current root port.
Definition: rstp_mgmt.c:668
error_t bridgeMibSetDot1dStpPortPathCost32(uint16_t portNum, const MibVariant *value, size_t valueLen, bool_t commit)
Set dot1dStpPortPathCost32 object value.
Definition: bridge_mib_impl_stp.c:2196
error_t stpMgmtGetRootPathCost(StpBridgeContext *context, uint32_t *value)
Get the current cost of the path to the root.
Definition: stp_mgmt.c:545
error_t stpMgmtGetForwardDelay(StpBridgeContext *context, uint_t *value)
Get the current Forward Delay value.
Definition: stp_mgmt.c:633
error_t rstpMgmtSetBridgeHelloTime(RstpBridgeContext *context, uint_t value, bool_t commit)
Set Bridge Hello Time parameter.
Definition: rstp_mgmt.c:216
error_t bridgeMibSetDot1dStpBridgeMaxAge(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set dot1dStpBridgeMaxAge object value.
Definition: bridge_mib_impl_stp.c:765
error_t bridgeMibSetDot1dStpBridgeForwardDelay(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set dot1dStpBridgeForwardDelay object value.
Definition: bridge_mib_impl_stp.c:1013
error_t bridgeMibGetDot1dStpRootPort(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpRootPort object value.
Definition: bridge_mib_impl_stp.c:449
error_t stpMgmtGetPortPriority(StpBridgeContext *context, uint_t portIndex, uint8_t *value)
Get the priority assigned to the port.
Definition: stp_mgmt.c:967
OID (Object Identifier)
error_t bridgeMibGetDot1dStpBridgeHelloTime(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpBridgeHelloTime object value.
Definition: bridge_mib_impl_stp.c:952
@ BRIDGE_MIB_PORT_STATE_FORWARDING
Definition: bridge_mib_module.h:95
Bridge MIB module implementation.
error_t rstpMgmtGetBridgeHelloTime(RstpBridgeContext *context, uint_t *value)
Get the assigned value of the Bridge Hello Time parameter.
Definition: rstp_mgmt.c:541
error_t bridgeMibGetDot1dStpTopChanges(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpTopChanges object value.
Definition: bridge_mib_impl_stp.c:267
error_t rstpMgmtGetRootPathCost(RstpBridgeContext *context, uint32_t *value)
Get the current cost of the path to the root.
Definition: rstp_mgmt.c:647
error_t rstpMgmtGetBridgeMaxAge(RstpBridgeContext *context, uint_t *value)
Get the assigned value of the Bridge Max Age parameter.
Definition: rstp_mgmt.c:520
error_t stpMgmtGetHoldTime(StpBridgeContext *context, uint_t *value)
Get the assigned value of the Hold Time parameter.
Definition: stp_mgmt.c:481
error_t bridgeMibGetNextDot1dStpPortEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
Get next dot1dStpPortEntry object.
Definition: bridge_mib_impl_stp.c:1356
error_t rstpMgmtGetDesignatedRoot(RstpBridgeContext *context, StpBridgeId *value)
Get the bridge identifier of the root of the spanning tree.
Definition: rstp_mgmt.c:625
error_t stpMgmtGetTopologyChanges(StpBridgeContext *context, uint_t *value)
Get the number of topology changes.
Definition: stp_mgmt.c:655
error_t stpMgmtGetRootPort(StpBridgeContext *context, uint16_t *value)
Get the current root port.
Definition: stp_mgmt.c:566
error_t stpMgmtSetPortPriority(StpBridgeContext *context, uint_t portIndex, uint8_t value, bool_t commit)
Set port priority.
Definition: stp_mgmt.c:702
error_t bridgeMibGetDot1dStpDesignatedRoot(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpDesignatedRoot object value.
Definition: bridge_mib_impl_stp.c:326
error_t mibDecodePort(const uint8_t *oid, size_t oidLen, size_t *pos, uint16_t *port)
Decode instance identifier (port number)
Definition: mib_common.c:495
error_t stpMgmtGetBridgePriority(StpBridgeContext *context, uint16_t *value)
Get the assigned bridge priority.
Definition: stp_mgmt.c:397
int_t oidComp(const uint8_t *oid1, size_t oidLen1, const uint8_t *oid2, size_t oidLen2)
Compare object identifiers.
Definition: oid.c:103
error_t bridgeMibGetDot1dStpPortDesignatedCost(uint16_t portNum, MibVariant *value, size_t *valueLen)
Get dot1dStpPortDesignatedCost object value.
Definition: bridge_mib_impl_stp.c:1951
Management of the RSTP bridge.
error_t stpMgmtGetTimeSinceTopologyChange(StpBridgeContext *context, uint_t *value)
Get the time since a topology change was last detected.
Definition: stp_mgmt.c:676
STP (Spanning Tree Protocol)
error_t rstpMgmtGetForwardTransitions(RstpBridgeContext *context, uint_t portIndex, uint_t *value)
Get the number of times the port has transitioned to Forwarding state.
Definition: rstp_mgmt.c:1789
error_t rstpMgmtGetForwardDelay(RstpBridgeContext *context, uint_t *value)
Get the current Forward Delay value.
Definition: rstp_mgmt.c:735
error_t rstpMgmtSetAdminPortPathCost(RstpBridgeContext *context, uint_t portIndex, uint32_t value, bool_t commit)
Set administrative port path cost.
Definition: rstp_mgmt.c:910
error_t bridgeMibSetDot1dStpPortPriority(uint16_t portNum, const MibVariant *value, size_t valueLen, bool_t commit)
Set dot1dStpPortPriority object value.
Definition: bridge_mib_impl_stp.c:1438
error_t bridgeMibGetDot1dStpPortDesignatedBridge(uint16_t portNum, MibVariant *value, size_t *valueLen)
Get dot1dStpPortDesignatedBridge object value.
Definition: bridge_mib_impl_stp.c:2008
error_t rstpMgmtGetPortPathCost(RstpBridgeContext *context, uint_t portIndex, uint32_t *value)
Get the current value of the port path cost.
Definition: rstp_mgmt.c:1340
uint_t bridgeMibGetPortIndex(uint16_t portNum)
Get the port index that matches the specified port number.
Definition: bridge_mib_impl.c:181
error_t bridgeMibGetDot1dStpHelloTime(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpHelloTime object value.
Definition: bridge_mib_impl_stp.c:565
error_t bridgeMibGetDot1dStpPortState(uint16_t portNum, MibVariant *value, size_t *valueLen)
Get dot1dStpPortState object value.
Definition: bridge_mib_impl_stp.c:1550
error_t stpMgmtSetBridgeForwardDelay(StpBridgeContext *context, uint_t value, bool_t commit)
Set Bridge Forward Delay parameter.
Definition: stp_mgmt.c:253
error_t stpMgmtGetPortDesignatedBridge(StpBridgeContext *context, uint_t portIndex, StpBridgeId *value)
Get the bridge identifier of the designated bridge.
Definition: stp_mgmt.c:1290
error_t bridgeMibGetDot1dStpMaxAge(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpMaxAge object value.
Definition: bridge_mib_impl_stp.c:508
error_t rstpMgmtGetMaxAge(RstpBridgeContext *context, uint_t *value)
Get the current Max Age value.
Definition: rstp_mgmt.c:690
error_t bridgeMibSetDot1dStpPortEnable(uint16_t portNum, const MibVariant *value, size_t valueLen, bool_t commit)
Set dot1dStpPortEnable object value.
Definition: bridge_mib_impl_stp.c:1632
error_t bridgeMibGetDot1dStpPortEnable(uint16_t portNum, MibVariant *value, size_t *valueLen)
Get dot1dStpPortEnable object value.
Definition: bridge_mib_impl_stp.c:1706
int32_t dot1dStpProtocolSpecification
Definition: bridge_mib_module.h:153
error_t stpMgmtGetForwardTransitions(StpBridgeContext *context, uint_t portIndex, uint_t *value)
Get the number of times the port has transitioned to Forwarding state.
Definition: stp_mgmt.c:1356
RSTP (Rapid Spanning Tree Protocol)
error_t bridgeMibSetDot1dStpBridgeHelloTime(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set dot1dStpBridgeHelloTime object value.
Definition: bridge_mib_impl_stp.c:889
error_t bridgeMibGetDot1dStpPortForwardTransitions(uint16_t portNum, MibVariant *value, size_t *valueLen)
Get dot1dStpPortForwardTransitions object value.
Definition: bridge_mib_impl_stp.c:2137
error_t rstpMgmtGetPortPriority(RstpBridgeContext *context, uint_t portIndex, uint8_t *value)
Get the priority assigned to the port.
Definition: rstp_mgmt.c:1212
error_t bridgeMibGetDot1dStpBridgeForwardDelay(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpBridgeForwardDelay object value.
Definition: bridge_mib_impl_stp.c:1076
error_t stpMgmtSetPortPathCost(StpBridgeContext *context, uint_t portIndex, uint32_t value, bool_t commit)
Set administrative port path cost.
Definition: stp_mgmt.c:886
error_t stpMgmtSetBridgeHelloTime(StpBridgeContext *context, uint_t value, bool_t commit)
Set Bridge Hello Time parameter.
Definition: stp_mgmt.c:198
error_t rstpMgmtGetTxHoldCount(RstpBridgeContext *context, uint_t *value)
Get the assigned value of the Transmit Hold Count parameter.
Definition: rstp_mgmt.c:583
error_t stpMgmtGetBridgeHelloTime(StpBridgeContext *context, uint_t *value)
Get the assigned value of the Bridge Hello Time parameter.
Definition: stp_mgmt.c:439
error_t bridgeMibGetDot1dStpPortEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpPortEntry object value.
Definition: bridge_mib_impl_stp.c:1224
error_t stpMgmtGetPortPathCost(StpBridgeContext *context, uint_t portIndex, uint32_t *value)
Get the current value of the port path cost.
Definition: stp_mgmt.c:1063
error_t stpMgmtGetPortDesignatedRoot(StpBridgeContext *context, uint_t portIndex, StpBridgeId *value)
Get the bridge identifier of the designated root bridge.
Definition: stp_mgmt.c:1223
error_t stpMgmtGetBridgeForwardDelay(StpBridgeContext *context, uint_t *value)
Get the assigned value of the Bridge Forward Delay parameter.
Definition: stp_mgmt.c:460
General definitions for cryptographic algorithms.
error_t rstpMgmtGetBridgePriority(RstpBridgeContext *context, uint16_t *value)
Get the assigned bridge priority.
Definition: rstp_mgmt.c:499
error_t rstpMgmtGetPortDesignatedBridge(RstpBridgeContext *context, uint_t portIndex, StpBridgeId *value)
Get the bridge identifier of the designated bridge.
Definition: rstp_mgmt.c:1723
error_t rstpMgmtSetAdminPortState(RstpBridgeContext *context, uint_t portIndex, bool_t value, bool_t commit)
Set administrative bridge port state.
Definition: rstp_mgmt.c:860
error_t rstpMgmtGetPortState(RstpBridgeContext *context, uint_t portIndex, StpPortState *value)
Get the current state of the port.
Definition: rstp_mgmt.c:1536
error_t rstpMgmtSetBridgeForwardDelay(RstpBridgeContext *context, uint_t value, bool_t commit)
Set Bridge Forward Delay parameter.
Definition: rstp_mgmt.c:276
error_t rstpMgmtSetPortPriority(RstpBridgeContext *context, uint_t portIndex, uint8_t value, bool_t commit)
Set port priority.
Definition: rstp_mgmt.c:804
error_t rstpMgmtGetBridgeForwardDelay(RstpBridgeContext *context, uint_t *value)
Get the assigned value of the Bridge Forward Delay parameter.
Definition: rstp_mgmt.c:562
error_t stpMgmtGetHelloTime(StpBridgeContext *context, uint_t *value)
Get the current Hello Time value.
Definition: stp_mgmt.c:610
uint16_t bridgeMibGetPortNum(uint16_t portIndex)
Get the port number that matches the specified port index.
Definition: bridge_mib_impl.c:240
error_t rstpMgmtGetTimeSinceTopologyChange(RstpBridgeContext *context, uint_t *value)
Get the time since a topology change was last detected.
Definition: rstp_mgmt.c:778
RstpBridgeContext * rstpBridgeContext
Definition: bridge_mib_module.h:150
error_t bridgeMibGetDot1dStpRootCost(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpRootCost object value.
Definition: bridge_mib_impl_stp.c:392
error_t rstpMgmtSetBridgeMaxAge(RstpBridgeContext *context, uint_t value, bool_t commit)
Set Bridge Max Age parameter.
Definition: rstp_mgmt.c:156
error_t stpMgmtSetBridgeMaxAge(StpBridgeContext *context, uint_t value, bool_t commit)
Set Bridge Max Age parameter.
Definition: stp_mgmt.c:137
error_t rstpMgmtGetAdminPortState(RstpBridgeContext *context, uint_t portIndex, bool_t *value)
Get the administrative port state.
Definition: rstp_mgmt.c:1244
error_t stpMgmtGetDesignatedRoot(StpBridgeContext *context, StpBridgeId *value)
Get the bridge identifier of the root of the spanning tree.
Definition: stp_mgmt.c:523
error_t bridgeMibGetDot1dStpHoldTime(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpHoldTime object value.
Definition: bridge_mib_impl_stp.c:624
error_t stpMgmtGetPortDesignatedCost(StpBridgeContext *context, uint_t portIndex, uint32_t *value)
Get the designated cost of the port.
Definition: stp_mgmt.c:1257
error_t rstpMgmtGetHelloTime(RstpBridgeContext *context, uint_t *value)
Get the current Hello Time value.
Definition: rstp_mgmt.c:712
error_t rstpMgmtGetPortDesignatedPort(RstpBridgeContext *context, uint_t portIndex, uint16_t *value)
Get the port identifier of the designated bridge.
Definition: rstp_mgmt.c:1756
error_t stpMgmtGetMaxAge(StpBridgeContext *context, uint_t *value)
Get the current Max Age value.
Definition: stp_mgmt.c:588
error_t bridgeMibGetDot1dStpPortDesignatedRoot(uint16_t portNum, MibVariant *value, size_t *valueLen)
Get dot1dStpPortDesignatedRoot object value.
Definition: bridge_mib_impl_stp.c:1883
Common definitions for MIB modules.
error_t bridgeMibGetDot1dStpPortPriority(uint16_t portNum, MibVariant *value, size_t *valueLen)
Get dot1dStpPortPriority object value.
Definition: bridge_mib_impl_stp.c:1493
error_t bridgeMibGetDot1dStpProtocolSpecification(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpProtocolSpecification object value.
Definition: bridge_mib_impl_stp.c:63
error_t bridgeMibGetDot1dStpTimeSinceTopologyChange(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpTimeSinceTopologyChange object value.
Definition: bridge_mib_impl_stp.c:208
error_t rstpMgmtGetPortDesignatedCost(RstpBridgeContext *context, uint_t portIndex, uint32_t *value)
Get the designated cost of the port.
Definition: rstp_mgmt.c:1690
error_t stpMgmtGetBridgeMaxAge(StpBridgeContext *context, uint_t *value)
Get the assigned value of the Bridge Max Age parameter.
Definition: stp_mgmt.c:418
error_t bridgeMibGetDot1dStpForwardDelay(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpForwardDelay object value.
Definition: bridge_mib_impl_stp.c:700
error_t bridgeMibGetDot1dStpBridgeMaxAge(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpBridgeMaxAge object value.
Definition: bridge_mib_impl_stp.c:828
error_t bridgeMibSetDot1dStpPortEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set dot1dStpPortEntry object value.
Definition: bridge_mib_impl_stp.c:1137
error_t bridgeMibSetDot1dStpPriority(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set dot1dStpPriority object value.
Definition: bridge_mib_impl_stp.c:87
error_t rstpMgmtGetPortDesignatedRoot(RstpBridgeContext *context, uint_t portIndex, StpBridgeId *value)
Get the bridge identifier of the designated root bridge.
Definition: rstp_mgmt.c:1656
error_t mibEncodeIndex(uint8_t *oid, size_t maxOidLen, size_t *pos, uint_t index)
Encode instance identifier (index)
Definition: mib_common.c:47
error_t rstpMgmtGetTopologyChanges(RstpBridgeContext *context, uint_t *value)
Get the number of topology changes.
Definition: rstp_mgmt.c:757
error_t stpMgmtSetAdminPortState(StpBridgeContext *context, uint_t portIndex, bool_t value, bool_t commit)
Set administrative bridge port state.
Definition: stp_mgmt.c:774
error_t stpMgmtGetPortState(StpBridgeContext *context, uint_t portIndex, StpPortState *value)
Get the current state of the port.
Definition: stp_mgmt.c:1096
error_t bridgeMibGetDot1dStpPortDesignatedPort(uint16_t portNum, MibVariant *value, size_t *valueLen)
Get dot1dStpPortDesignatedPort object value.
Definition: bridge_mib_impl_stp.c:2074
TCP/IP stack core.
error_t stpMgmtGetPortDesignatedPort(StpBridgeContext *context, uint_t portIndex, uint16_t *value)
Get the port identifier of the designated bridge.
Definition: stp_mgmt.c:1323
error_t stpMgmtSetBridgePriority(StpBridgeContext *context, uint16_t value, bool_t commit)
Set bridge priority.
Definition: stp_mgmt.c:55
Bridge MIB module.
error_t bridgeMibGetDot1dStpPortPathCost(uint16_t portNum, MibVariant *value, size_t *valueLen)
Get dot1dStpPortPathCost object value.
Definition: bridge_mib_impl_stp.c:1825
error_t bridgeMibGetDot1dStpPriority(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get dot1dStpPriority object value.
Definition: bridge_mib_impl_stp.c:149
error_t bridgeMibSetDot1dStpPortPathCost(uint16_t portNum, const MibVariant *value, size_t valueLen, bool_t commit)
Set dot1dStpPortPathCost object value.
Definition: bridge_mib_impl_stp.c:1770
error_t bridgeMibGetDot1dStpPortPathCost32(uint16_t portNum, MibVariant *value, size_t *valueLen)
Get dot1dStpPortPathCost32 object value.
Definition: bridge_mib_impl_stp.c:2251
Debugging facilities.
ASN.1 (Abstract Syntax Notation One)
Management of the STP bridge.
error_t rstpMgmtSetBridgePriority(RstpBridgeContext *context, uint16_t value, bool_t commit)
Set bridge priority.
Definition: rstp_mgmt.c:96
StpBridgeContext * stpBridgeContext
Definition: bridge_mib_module.h:147