summaryrefslogtreecommitdiff
path: root/bgpd/bgp_fsm.c
diff options
context:
space:
mode:
authorpaul <paul>2004-05-03 13:25:06 +0000
committerpaul <paul>2004-05-03 13:25:06 +0000
commitc53174045b26d0a87c68d276aeca0aaca9f464ae (patch)
treef1763d48b6fd38ab4f60e077b93591f8439a988e /bgpd/bgp_fsm.c
parent8b338fe94cb7fd33f6f05635bc2b70301d1e51b7 (diff)
2004-05-03 Daniel Roesen <dr@cluenet.de>
* 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)
Diffstat (limited to 'bgpd/bgp_fsm.c')
-rw-r--r--bgpd/bgp_fsm.c5
1 files changed, 2 insertions, 3 deletions
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);