summaryrefslogtreecommitdiff
path: root/bgpd/bgp_fsm.h
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2006-10-15 23:39:59 +0000
committerPaul Jakma <paul.jakma@sun.com>2006-10-15 23:39:59 +0000
commitdcdf399fbc7420d3edc230c9646f720825fcecda (patch)
treed4712072c844fff67e49e44fc9503d0b11f8062f /bgpd/bgp_fsm.h
parent876b8be0ab24721e8f94d47dde022563f76db992 (diff)
[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.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/bgpd/bgp_fsm.h b/bgpd/bgp_fsm.h
index c51bed37..a749f8ea 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);