head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.8 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.6 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.4 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.2 pkgsrc-2011Q2-base:1.4 pkgsrc-2010Q4:1.3.0.16 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.14 pkgsrc-2010Q3-base:1.3 pkgsrc-2010Q2:1.3.0.12 pkgsrc-2010Q2-base:1.3 pkgsrc-2010Q1:1.3.0.10 pkgsrc-2010Q1-base:1.3 pkgsrc-2009Q4:1.3.0.8 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q3:1.3.0.6 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.4 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.2 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.1.0.16 pkgsrc-2008Q4-base:1.1 pkgsrc-2008Q3:1.1.0.14 pkgsrc-2008Q3-base:1.1 cube-native-xorg:1.1.0.12 cube-native-xorg-base:1.1 pkgsrc-2008Q2:1.1.0.10 pkgsrc-2008Q2-base:1.1 cwrapper:1.1.0.8 pkgsrc-2008Q1:1.1.0.6 pkgsrc-2008Q1-base:1.1 pkgsrc-2007Q4:1.1.0.4 pkgsrc-2007Q4-base:1.1 pkgsrc-2007Q3:1.1.0.2 pkgsrc-2007Q3-base:1.1; locks; strict; comment @# @; 1.4 date 2011.03.19.19.59.47; author spz; state dead; branches; next 1.3; 1.3 date 2009.03.15.20.10.36; author spz; state Exp; branches; next 1.2; 1.2 date 2009.02.14.16.17.06; author spz; state Exp; branches; next 1.1; 1.1 date 2007.09.07.21.26.32; author spz; state Exp; branches; next ; desc @@ 1.4 log @remove obsolete irrtoolset-nox11 @ text @$NetBSD: patch-cz,v 1.3 2009/03/15 20:10:36 spz Exp $ --- src/rpsl/rpsl/rpsl_asnum.hh.orig 2009-03-15 16:45:45.000000000 +0100 +++ src/rpsl/rpsl/rpsl_asnum.hh @@@@ -0,0 +1,28 @@@@ +#ifndef ASNUM_HH +#define ASNUM_HH 1 + +extern bool opt_asdot; + +inline int asnum_string(char *buf, unsigned int asno) +{ + if (asno > 65535 && opt_asdot) + return sprintf(buf, "AS%d.%d", asno>>16, asno&0xffff); + else + return sprintf(buf, "AS%d", asno); +} + +inline int asnum_string_dot(char *buf, unsigned int asno) +{ + if (asno > 65535) + return sprintf(buf, "AS%d.%d", asno>>16, asno&0xffff); + else + return sprintf(buf, "AS%d", asno); +} + +inline int asnum_string_plain(char *buf, unsigned int asno) +{ + return sprintf(buf, "AS%d", asno); +} + +#endif + @ 1.3 log @fix the asplain patch: since the routing registries currently won't find 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. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @add new option -asplain that makes extended autnums be output as simple numbers instead of in asdot format. @ text @d3 1 a3 1 --- src/rpsl/rpsl/rpsl_asnum.hh.orig 2009-02-13 22:35:13.000000000 +0100 d5 1 a5 1 @@@@ -0,0 +1,15 @@@@ d19 13 @ 1.1 log @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 @ text @d3 1 a3 1 --- src/rpsl/rpsl/rpsl_asnum.hh.orig 2007-09-07 22:05:27.000000000 +0200 d5 1 a5 1 @@@@ -0,0 +1,13 @@@@ d9 2 d13 1 a13 1 + if (asno > 65535) @