d9572eccbc
path/aggregator.
20 lines
496 B
Plaintext
20 lines
496 B
Plaintext
$OpenBSD: patch-nest_a-path_c,v 1.1 2009/08/25 20:32:09 sthen Exp $
|
|
|
|
Fixes bug related to AS2->AS4 conversion, from upstream repo.
|
|
|
|
--- nest/a-path.c.orig Tue Aug 25 20:57:14 2009
|
|
+++ nest/a-path.c Tue Aug 25 20:59:11 2009
|
|
@@ -188,6 +188,12 @@ int
|
|
as_path_getlen(struct adata *path)
|
|
{
|
|
int bs = bgp_as4_support ? 4 : 2;
|
|
+ return as_path_getlen_int(path, bs);
|
|
+}
|
|
+
|
|
+int
|
|
+as_path_getlen_int(struct adata *path, int bs)
|
|
+{
|
|
int res = 0;
|
|
u8 *p = path->data;
|
|
u8 *q = p+path->length;
|