summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/ChangeLog6
-rw-r--r--bgpd/bgp_fsm.c5
2 files changed, 8 insertions, 3 deletions
diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog
index 21189820..b5f28878 100644
--- a/bgpd/ChangeLog
+++ b/bgpd/ChangeLog
@@ -1,3 +1,9 @@
+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)
+
2004-05-01 rivo nurges <rix@estpak.ee>
* bgp_route.c: fix UNH IOL BGP-4.1.12f
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);