753b403c52
asplained autnums, make asdot the default, but prepare for them switching by asking the asplained format before giving up, independently of any command line settings. Bump pkgrev, too.
17 lines
606 B
Text
17 lines
606 B
Text
$NetBSD: patch-di,v 1.3 2009/03/15 20:10:36 spz Exp $
|
|
|
|
--- src/irr/birdwhoisc.cc.orig 2006-10-09 18:05:14.000000000 +0200
|
|
+++ src/irr/birdwhoisc.cc
|
|
@@ -429,7 +429,11 @@ int BirdWhoisClient::getSourceOrigin(cha
|
|
AttrGenericIterator<ItemASNO> itrOrigin(itrObject, "origin");
|
|
AttrGenericIterator<ItemWORD> itrSource(itrObject, "source");
|
|
if (itrOrigin && itrSource)
|
|
- cBuffer.append("%s AS%d\n", itrSource()->word, itrOrigin()->asno);
|
|
+ {
|
|
+ char buf[64];
|
|
+ asnum_string_dot(buf, itrOrigin()->asno);
|
|
+ cBuffer.append("%s %s\n", itrSource()->word, buf);
|
|
+ }
|
|
}
|
|
}
|
|
if (cBuffer.empty())
|