A library that implements the Multiple / Rapid Spanning Tree
Protocol as defined in 802.1Q-2011.
It's written in C++03 and is callable from C.
I integrated the library myself in devices with RSTP used
in ship automation, military equipment, avionics --
bare-bones as well as Linux-based.
I'm aware of it being used in other products as well.
A Simulator application for Windows is provided - both
sources and binaries. The Simulator lets you create
networks and see the library in action.
See the screenshot below. This is a project for
Visual Studio 2017 version 15.3.
The repository includes sources for a sample RSTP implementation
on an embedded device. This highlights the platform-specific
code needed by the library -- mostly code that writes to
the hardware registers of the switch chip. This is typically
a few dozen lines of code spread over several functions.
This example is a project for IAR Embedded Workbench 6.50, for a
device with an LPC2000 microcontroller and an IP175C
switch chip.
You're going to have to write the platform-specific code
for your particular switch IC. Drop me a message at
adigostin@gmail.com
and I'll try to help.
The repository also includes
help files
for most of the library APIs -
some
quite
extensive.