quagga/quagga-0.99.11-asn32.patch

13 lines
654 B
Diff
Raw Normal View History

diff -up quagga-0.99.11/bgpd/bgp_aspath.c.asn32 quagga-0.99.11/bgpd/bgp_aspath.c
--- quagga-0.99.11/bgpd/bgp_aspath.c.asn32 2009-05-04 14:52:13.000000000 +0200
+++ quagga-0.99.11/bgpd/bgp_aspath.c 2009-05-04 14:52:24.000000000 +0200
@@ -549,7 +549,7 @@ aspath_make_str_count (struct aspath *as
* With 32bit ASNs, this range will increase, but only worth changing
* once there are significant numbers of ASN >= 100000
*/
-#define ASN_STR_LEN (5 + 1)
+#define ASN_STR_LEN (10 + 1)
str_size = MAX (assegment_count_asns (seg, 0) * ASN_STR_LEN + 2 + 1,
ASPATH_STR_DEFAULT_LEN);
str_buf = XMALLOC (MTYPE_AS_STR, str_size);