Fix "show ip bgp dampened-paths" garbage output.
commit50aef6f3b0e36b56cfa9f3d374be0c1d25c30c45
authorChris Caputo <ccaputo@alt.net>
Tue, 23 Jun 2009 06:06:49 +0000 (23 06:06 +0000)
committerPaul Jakma <paul@quagga.net>
Tue, 23 Jun 2009 13:25:20 +0000 (23 14:25 +0100)
tree5dce97de6229713c6c209cbb72abc1093fa1be58
parent6e79f8bba438823d84b7464a9acc1e6fc9126a27
Fix "show ip bgp dampened-paths" garbage output.

* bgpd/bgp_damp.c: Make bgp_damp_reuse_time_vty() accept a buffer and
  length, rather than returning a local var buffer whose contents can get
  trounced.  Remove duplicate BGP_UPTIME_LEN define.
* bgpd/bgp_damp.h: bgp_damp_reuse_time_vty() prototype change.
* bgpd/bgp_route.c: Provide bgp_damp_reuse_time_vty() with a buffer and
  length.  Remove duplicate BGP_UPTIME_LEN define.

This problem was noticed in 2005...

  http://hibernia.jakma.org/~paul/patches/quagga-test.diff

...but the fix didn't make it into the code.

Signed-off-by: Chris Caputo <ccaputo@alt.net>
bgpd/bgp_damp.c
bgpd/bgp_damp.h
bgpd/bgp_route.c