blob: 93d6e1ac0cc4d0d4258543aad1c9149e5cc637f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-cz,v 1.1 2007/09/07 21:26:32 spz Exp $
--- src/rpsl/rpsl/rpsl_asnum.hh.orig 2007-09-07 22:05:27.000000000 +0200
+++ src/rpsl/rpsl/rpsl_asnum.hh
@@ -0,0 +1,13 @@
+#ifndef ASNUM_HH
+#define ASNUM_HH 1
+
+inline int asnum_string(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);
+}
+
+#endif
+
|