net/quagga: include another upstream patch
authoracoul <acoul@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 25 Oct 2010 11:07:24 +0000 (11:07 +0000)
committeracoul <acoul@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 25 Oct 2010 11:07:24 +0000 (11:07 +0000)
git-svn-id: svn+ssh://svn.openwrt.org/openwrt@23629 3c298f89-4303-0410-b956-a3cf2f4a3e73

patches/000-upstream-clock_fix.patch [new file with mode: 0644]

diff --git a/patches/000-upstream-clock_fix.patch b/patches/000-upstream-clock_fix.patch
new file mode 100644 (file)
index 0000000..58fea85
--- /dev/null
@@ -0,0 +1,29 @@
+From 213b6cd9fb24381563d6d44c7ddc4700abfae676 Mon Sep 17 00:00:00 2001
+From: Vladimir L Ivanov <wawa@yandex-team.ru>
+Date: Thu, 21 Oct 2010 14:59:54 +0400
+Subject: [PATCH] bgpd: fix printed value of last-update timestamp
+
+* bgp_route.c: (route_vty_out_detail) calculate time value
+    in a way, which works regardless of monotonic clock
+    being used or not
+---
+ bgpd/bgp_route.c |    3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
+index 2391f74..1cfc451 100644
+--- a/bgpd/bgp_route.c
++++ b/bgpd/bgp_route.c
+@@ -6145,7 +6145,8 @@ route_vty_out_detail (struct vty *vty, struct bgp *bgp, struct prefix *p,
+       bgp_damp_info_vty (vty, binfo);
+       /* Line 7 display Uptime */
+-      vty_out (vty, "      Last update: %s", ctime (&binfo->uptime));
++      time_t tbuf = time(NULL) - (bgp_clock() - binfo->uptime);
++      vty_out (vty, "      Last update: %s", ctime(&tbuf));
+     }
+   vty_out (vty, "%s", VTY_NEWLINE);
+ }  
+-- 
+1.7.2.3
+