diff options
author | Paul Jakma <paul.jakma@sun.com> | 2006-10-16 01:39:59 +0200 |
---|---|---|
committer | Paul Jakma <paul.jakma@sun.com> | 2006-10-16 01:39:59 +0200 |
commit | dcdf399fbc7420d3edc230c9646f720825fcecda (patch) | |
tree | d4712072c844fff67e49e44fc9503d0b11f8062f /bgpd/bgp_fsm.h | |
parent | [daemon startup] Add --dry-run/-C argument to daemons, to check config file s... (diff) | |
download | frr-dcdf399fbc7420d3edc230c9646f720825fcecda.tar.xz frr-dcdf399fbc7420d3edc230c9646f720825fcecda.zip |
[bgpd] Bug #302 fixes. ClearingCompleted event gets flushed, leaving peers stuck in Clearing.
2006-10-14 Paul Jakma <paul.jakma@sun.com>
* bgp_fsm.h: Remove BGP_EVENT_FLUSH_ADD, dangerous and not
needed.
* bgp_fsm.c: (bgp_stop) Move BGP_EVENT_FLUSH to the top of the
of the function, otherwise it could flush a ClearingCompleted
event, bug #302.
* bgp_packet.c: Replace all BGP_EVENT_FLUSH_ADD with
BGP_EVENT_ADD, fixing bug #302.
Diffstat (limited to 'bgpd/bgp_fsm.h')
-rw-r--r-- | bgpd/bgp_fsm.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/bgpd/bgp_fsm.h b/bgpd/bgp_fsm.h index c51bed37e..a749f8ea3 100644 --- a/bgpd/bgp_fsm.h +++ b/bgpd/bgp_fsm.h @@ -71,12 +71,6 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA thread_cancel_event (master, (P)); \ } while (0) -#define BGP_EVENT_FLUSH_ADD(P,E) \ - do { \ - BGP_EVENT_FLUSH(P); \ - BGP_EVENT_ADD(P,E); \ - } while (0) - /* Prototypes. */ extern int bgp_event (struct thread *); extern int bgp_stop (struct peer *peer); |