diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2009-08-25 19:01:37 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2009-08-25 19:01:37 +0200 |
commit | 949bd34e81ee99370decdabefa51c9c11ffe915b (patch) | |
tree | 0b1235cf3aeebdf0f161d2782a66d9fc7d4d7369 /nest/a-path.c | |
parent | a0c405501fa6a0df8472f1598256e725cec753fd (diff) |
Fixes bug related to AS2->AS4 conversion.
Diffstat (limited to 'nest/a-path.c')
-rw-r--r-- | nest/a-path.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nest/a-path.c b/nest/a-path.c index dba214d2..0a4bf829 100644 --- a/nest/a-path.c +++ b/nest/a-path.c @@ -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; |