From c53174045b26d0a87c68d276aeca0aaca9f464ae Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 3 May 2004 13:25:06 +0000 Subject: 2004-05-03 Daniel Roesen * bgp_fsm.c: (bgp_stop) Reset uptime only on transition from Established so that it reflects true downtime (rather time since last transition, eg Active->Idle) --- bgpd/bgp_fsm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bgpd/bgp_fsm.c') diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c index 3d8e9576..5c8224c6 100644 --- a/bgpd/bgp_fsm.c +++ b/bgpd/bgp_fsm.c @@ -329,15 +329,14 @@ bgp_stop (struct peer *peer) /* set last reset time */ peer->resettime = time (NULL); + /* Reset uptime. */ + bgp_uptime_reset (peer); #ifdef HAVE_SNMP bgpTrapBackwardTransition (peer); #endif /* HAVE_SNMP */ } - /* Reset uptime. */ - bgp_uptime_reset (peer); - /* Need of clear of peer. */ if (established) bgp_clear_route_all (peer); -- cgit v1.2.1