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)
This commit is contained in:
paul 2004-05-03 13:25:06 +00:00
parent 8b338fe94c
commit c53174045b
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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);