]> git.puffer.fish Git - matthieu/frr.git/commit
When unexpected events are received, do not silently transition to Idle
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 01:04:12 +0000 (18:04 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 01:04:12 +0000 (18:04 -0700)
commit6403814caab46eef50dd1193593e0e9715ef6a43
tree28aa8d4fc9d403160251989f2f48e737763cf9c1
parent2fc76430f4011cb08d9126b1c3c04cee36311236
When unexpected events are received, do not silently transition to Idle
state through bgp_ignore() as that may not do required cleanup. Instead,
define a new event handler to handle such cases, which will go through
bgp_stop(). A similar change is also done to handle the case where an
event handler fails.

Also add a couple of variables to keep track of events for a peer.
bgpd/bgp_fsm.c
bgpd/bgpd.c
bgpd/bgpd.h