adigostin/mstp-lib

Changing parameters

IronCaterpillar opened this issue · 2 comments

How can I change the following parameters:

  • Hello Time
  • Forwarding Delay
  • Max Age

Have a look at the code in the "develop" branch: https://github.com/adigostin/mstp-lib/blob/develop/mstp-lib/stp.h
What you need is:

  • STP_SetBridgeHelloTime (this is ignored in RSTP and MSTP, spec says so);
  • STP_SetBridgeForwardDelay
  • STP_SetBridgeMaxAge

Pay attention to the units. These functions are meant for SNMP usage, so the units are those required by MIBs.

I added in a recent release a few library functions for setting these three parameters as well as TxHoldCount, so I'm closing this ticket.
(There are also functions for getting the values back, and functions for getting the currently used values that may have been received from the root bridge.)