pkgsrc/net/irrtoolset-nox11/patches/patch-db
spz 015569be5a patches irrtoolset to handle extended autnums
most changes supplied by mlelstv@NetBSD.org (Michael van Elst)
patch to src/rpsl/rpsl/rptype.cc supplied by he@NetBSD.org (Havard Eidnes)

also fixes PR pkg/36807
2007-09-07 21:26:31 +00:00

23 lines
733 B
Text

$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");
}
}