]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: improve "monotonic" uptime correction
authorJohn Kemp <kemp@network-services.uoregon.edu>
Fri, 18 Mar 2011 14:52:18 +0000 (17:52 +0300)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 17 Oct 2011 14:42:19 +0000 (18:42 +0400)
commitcc0b6c122f2d01d886e1ebde15cd2e7c5442c598
treee6a65e182af6e028087538bec3056219e6471d10
parent1809ec13def22bc6c2c30d9e8d37a74095bcfb64
bgpd: improve "monotonic" uptime correction

Older versions of Quagga/Zebra would output a value in MRT table
dump files for "uptime" aka "ORIGINATED" that was a WALL clock
value.  Given that uptime is now internally a bgp_clock MONOTONIC
value, the output in the MRT files is showing up as monotonic.

Note: time of MRT dump is still recorded correctly as a
time() based value, so we haven't lost that value.

Proposal is to correct the uptime output on the vty and in the
MRT files to again display something more akin to WALL time.

* bgp_dump.c: (bgp_dump_routes_func) add conditional correction
* bgp_route.c: (route_vty_out_detail) make correction conditional, move
  variable declaration to beginning of the function
bgpd/bgp_dump.c
bgpd/bgp_route.c