isisd: After the router switches IS-IS type several times, the neighbor adjacency cannot be established. #16230
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.
When the adjacency type of the link is switched in function
isis_circuit_is_type_set()
, the functioncircuit_resign_level()
is called to delete the old level'scircuit->u.bc.lan_neighs
linked list. If the old level is not level-1-2, the functioncircuit_commence_level()
is called to create a new level'scircuit->u.bc.lan_neighs
linked list, but neither of these functions handle thecircuit->u.bc.adjdb
linked list. This leads to a situation where upon receiving hello packets again in functionprocess_lan_hello()
before thecircuit->u.bc.adjdb
linked list entries age out, thecircuit->u.bc.lan_neighs
linked list is not constructed based on thecircuit->u.bc.adjdb
linked list. As a result, the hello packets sent will consistently lack an SNPA, causing the neighbor to remain unable to establish an adjacency upon receiving the hello packets.Signed-off-by: zhou-run [email protected]