# mstp-lib **Repository Path**: gbinb/mstp-lib ## Basic Information - **Project Name**: mstp-lib - **Description**: mstp-lib是一个实现了 802.1Q-2018 中定义的多/快速生成树协议的库,它是用 C++03 编写的,可以从 C 调用。 - **Primary Language**: C - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-25 - **Last Updated**: 2025-10-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### mstp-lib A library that implements the Multiple / Rapid Spanning Tree Protocol as defined in 802.1Q-2018. It's written in C++03 and is callable from C. I integrated the library myself in various devices made by various OEMs (ship automation, tactical networking, in-flight entertainment) and I helped others integrate it in plenty other devices. ### Simulator A Simulator application for Windows is provided - both sources and [binaries](https://github.com/adigostin/mstp-lib/releases). The Simulator lets you create networks and see the library in action. See the screenshot below. This is a project for Visual Studio 2017. ### Embedded Application Examples The repository includes sources with a couple of RSTP implementations on embedded devices with microcontrollers and switches such as Marvell, Microchip, IC+. The projects are for Rowley CrossWorks (gcc and clang compilers) and IAR Embedded Workbench (EDG compiler). These samples highlight the platform-specific code required by STP -- mostly code that writes to a few hardware registers of the switch chip. To integrate the library in your embedded application, you'll need to write platform-specific code for your particular switch IC. Drop me a message at [adigostin@gmail.com](mailto:adigostin@gmail.com) and I might be able to help. ### API Help The repository also includes [help files](https://github.com/adigostin/mstp-lib/tree/master/_help) for most of the library APIs - [some](http://htmlpreview.github.io/?https://github.com/adigostin/mstp-lib/blob/master/_help/STP_CreateBridge.html) [rather](http://htmlpreview.github.io/?https://github.com/adigostin/mstp-lib/blob/master/_help/StpCallback_TransmitGetBuffer.html) [extensive](http://htmlpreview.github.io/?https://github.com/adigostin/mstp-lib/blob/master/_help/STP_OnPortEnabled.html). ### Screenshot of the Windows Simulator ![screenshot](./Screenshot-v2.2.png "Logo Title Text 1")