[quagga-dev 5259] cosmetic show command patch to bgpd/bgp_vty.c

Michael Larson mike at vyatta.com
Tue Feb 12 19:57:54 GMT 2008


If the ASN specified is larger than the max positive value of a signed int--the quagga show command show ip bgp summary will overflow the AS value:

Where AS = 4294967294

# show ip bgp summary
BGP router identifier, local AS number -2
RIB entries 0, using 0 bytes of memory

I've attached a small patch (bgpd/bgp_vty.c) that fixes the sprintf statement in 3 places for bgp AS output. thanks!

Mike Larson

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bgp_vty.c_patch
Type: application/octet-stream
Size: 1499 bytes
Desc: not available
URL: <http://lists.quagga.net/pipermail/quagga-dev/attachments/20080212/e1d8eb39/attachment-0001.obj>

More information about the Quagga-dev mailing list