pimd icon indicating copy to clipboard operation
pimd copied to clipboard

Some insights about spt-threshold behavior

Open stormshield-rlibaert opened this issue 3 years ago • 2 comments

Hello Joachim,

We had some more issues when testing some configurations with spt-threshold enabled. We tried to understand the mechanisms used to do the switch to SPT and realised a few things. I have a branch with a few modifications:

https://github.com/stormshield-rlibaert/pimd/commit/b8c5442bf4175e26e8f49360ce7b1eb11918c852

To sum up:

  • There is a bugfix when parsing configuration
  • I removed a call to try_switch_to_spt which was done regardless of the provided configuration
  • I moved around the init_route initialization function

The last one is the most risky to me as I don't have a wide understanding of pimd, so maybe it brings breaking changes. But the reason for this is that the spt_threshold timer was set to the default value (defined by SPT_THRESHOLD_DEFAULT_INTERVAL), as the configuration of this is done through init_vifs.

stormshield-rlibaert avatar Mar 09 '22 10:03 stormshield-rlibaert

Cool, I say we try it out and see what breaks! :sunglasses:

Please submit a pull request and I'll try to find some time to get back to my backlog (of yet unpushed fixes) in pimd. It's easier for me to test as well.

Update: nice catch there with the bugfix! :+1: Much facepalming over here right now .... :man_facepalming:

(I still haven't gotten around to debugging the BSR + flood-to-RP-when-RP-changes issue, but this might trigger me to get back to it)

troglobit avatar Mar 09 '22 12:03 troglobit

There, tested and merged! Sorry it took me a while to get around to, been busy getting up to speed at a new job.

troglobit avatar Mar 17 '22 04:03 troglobit