summaryrefslogtreecommitdiff
path: root/net/irrtoolset-nox11/patches/patch-db
blob: 8eda950e2ded324e88e750c35342ad8c56823429 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-db,v 1.1 2007/09/07 21:26:33 spz Exp $

--- src/aoe/bgp_aspath.cc.orig	2002-04-09 13:48:46.000000000 +0200
+++ src/aoe/bgp_aspath.cc
@@ -110,11 +110,15 @@ void BgpASPath::print(void)
 	pcFirstAndLastAS; 
 	pcFirstAndLastAS = cFirstAndLastASes.next(pcFirstAndLastAS))
       {
-      printf("AS%d --", pcFirstAndLastAS->getFirst());
+      char buf[64];
+	  asnum_string(buf, pcFirstAndLastAS->getFirst());
+	  printf("%s --", buf);
       for (int i = pcFirstAndLastAS->getLast().first(); 
 	   i >= 0; 
-	   i = pcFirstAndLastAS->getLast().next(i))
-	 printf(" AS%d", i); 
+	   i = pcFirstAndLastAS->getLast().next(i)) {
+	     asnum_string(buf, i);
+		 printf(" %s", buf);
+       }
       printf("\n");
       }
 }