diff options
author | paul <paul> | 2004-05-03 15:25:06 +0200 |
---|---|---|
committer | paul <paul> | 2004-05-03 15:25:06 +0200 |
commit | c53174045b26d0a87c68d276aeca0aaca9f464ae (patch) | |
tree | f1763d48b6fd38ab4f60e077b93591f8439a988e /bgpd/bgp_fsm.c | |
parent | 2004-05-03 Paul Jakma <paul@dishone.st> (diff) | |
download | frr-c53174045b26d0a87c68d276aeca0aaca9f464ae.tar.xz frr-c53174045b26d0a87c68d276aeca0aaca9f464ae.zip |
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.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c index 3d8e95767..5c8224c67 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); |