From 4fb90e5ae2fa4d59ac2e1348a8112a10385a62b9 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Tue, 7 Dec 2004 17:19:10 +0000 Subject: 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. --- usr.sbin/bgpd/session.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ -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: -- cgit v1.2.3