summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-12-07 17:19:10 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-12-07 17:19:10 +0000
commit4fb90e5ae2fa4d59ac2e1348a8112a10385a62b9 (patch)
tree00adf2e166fbbf1245bfc65cb06be26235ac5c56 /usr.sbin/bgpd
parent3dd0eeb90cc3cb05b003f511986aa48b242af672 (diff)
oups, little FSM error: when we're in CONNECT and get an CON_OPEN event
initialize and start the holdtimer, just like when we're in state ACTIVE.
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/session.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index 80a6ad2ba67..e881f05c45a 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.208 2004/11/23 13:07:01 claudio Exp $ */
+/* $OpenBSD: session.c,v 1.209 2004/12/07 17:19:09 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -606,6 +606,8 @@ bgp_fsm(struct peer *peer, enum session_events event)
session_tcp_established(peer);
session_open(peer);
peer->ConnectRetryTimer = 0;
+ peer->holdtime = INTERVAL_HOLD_INITIAL;
+ start_timer_holdtime(peer);
change_state(peer, STATE_OPENSENT, event);
break;
case EVNT_CON_OPENFAIL: