adigostin / mstp-lib Goto Github PK
View Code? Open in Web Editor NEWMultiple / Rapid Spanning Tree Library & Windows Simulator
License: Apache License 2.0
Multiple / Rapid Spanning Tree Library & Windows Simulator
License: Apache License 2.0
Delete this:
"It is recommended that the application, before passing a received BPDU frame to the STP library, performs a check for malformed frames by comparing the value in the EtherType/Size field of the frame to the length of the received frame. Such malformed frames should be discarded, not passed to the STP library."
The library checks the BPDU anyway, and it is also unclear in this paragraph what the app is supposed to do with regard to short frames padded to 64 bytes.
#3
In other implementations of RSTP that I've seen, the BPDU is only transmitted every hello time, or when there is a topology change: 1 BPDU per hello period in stable conditions.
Toying with the simulator, I have noticed that, on every hello period, 2 BPDUs are transmitted from the designated ports. Looks like one of the BPDUs received on the root port triggers the transmission of a BPDU on the designated ports, which is added to the BPDU transmitted on hello time.
This seems like unnecessary traffic. Is this intentional? Does this respect the 802.1 standard?
Thanks
When BEGIN is asserted, for example due to changing the protocol version with STP_SetStpVersion()
, each state machine must enter a well-defined state and execute the "state entry" code.
Bug: if a state machine is already in that state when BEGIN is asserted, then the "state entry" code is not executed. See this comment in various state machines: // The entry block for this state has been executed already.
Fix: In RestartStateMachines(), force the state of all state machines to "undefined" (value 0) after asserting BEGIN and before running the state machines. This will cause them to always transition to the well-defined state and execute its entry code.
In rcvMsgs():
if (port->rcvdInternal)
{
...
for (unsigned int messageIndex = 0; messageIndex < mstiMessageCount; messageIndex++)
{
const MSTI_CONFIG_MESSAGE* message = &mstiMessages [messageIndex];
How can I change the following parameters:
i.e., replace STP_OnPortEnabled
with STP_OnPort_s_Enabled
.
or better something containing the standard name "macOperational"
CrossWorks 4.0.6 uses gcc-arm-6-2017-q2-update
, as described here: https://www.rowley.co.uk/crossworks/gpl_sources.htm
In 802.1Q-2018, see:
13.27.28 fdbFlush
13.27.2 ageingTime
Implementation of StpCallback_EnableBpduTrapping
and StpCallback_TransmitGetBuffer
are different than for most other switches.
(parameters)
i.e., from STP_StopBridge
, call the enableLearning
and enableForwarding
callbacks for every tree of every port wherelearning
and forwarding
are false.
Make this explicit in the documentation of STP_StopBridge
, explaining that the learning
and forwarding
states of a port are relevant only to STP and shouldn't be messed with while STP isn't running.
Also remove from simulator the code that restores learning
and forwarding
there.
In stp.h flush parameter is uint:
typedef void (*STP_CALLBACK_DEBUG_STR_OUT) (const struct STP_BRIDGE* bridge, int portIndex, int treeIndex, const char* nullTerminatedString, unsigned int stringLength, unsigned int flush);
In documentation StpCallback_DebugStrOut.html flush is bool type.
All usages inside stp_log.cpp provide true/false as flush argument
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.