summaryrefslogtreecommitdiff
path: root/bgpd
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
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')
-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);