Repository navigation
Conversation
A port held for a detected loop was set to discarding only when its timer was not running. When the returned BPDUs stopped for longer than the forward delay the port moved on to learning, and when they came back only the timer was renewed: the port stayed in learning for as long as the loop lasted, learning addresses on a segment it does not forward to. Put the port back to discarding whenever it is held.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A port held for a detected loop can end up in learning for good.
stp_loop_hold_peer()set the port to discarding only when its timer wasn't running. If the returned BPDUs stop for longer than the forward delay, say because the cable was out for 20 seconds, the port moves on to learning; when they come back only the timer is renewed. The port then stays in learning as long as the loop lasts and learns addresses on a segment it doesn't forward to.The port is now put back to discarding whenever it is held.
The STP simulator has a scenario for it: a returned frame while the held port is learning takes it back to discarding. It fails on main and passes with this change.