summaryrefslogtreecommitdiff
path: root/proto/bgp
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2011-07-03 19:43:30 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2011-07-03 19:43:30 +0200
commitfdf16eb65872b3bee02fb9e25c80ea32cf59f8e9 (patch)
tree484d2d04d83958c7adc1198a7ebd445467459330 /proto/bgp
parent6370d6f61b30b2390727eee8136e0e575dff609f (diff)
Prints full community lists during 'show route all'.
Diffstat (limited to 'proto/bgp')
-rw-r--r--proto/bgp/attrs.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c
index 95eee9aa..83ca2498 100644
--- a/proto/bgp/attrs.c
+++ b/proto/bgp/attrs.c
@@ -255,9 +255,10 @@ bgp_check_cluster_list(struct bgp_proto *p UNUSED, byte *a UNUSED, int len)
}
static void
-bgp_format_cluster_list(eattr *a, byte *buf, int buflen UNUSED)
+bgp_format_cluster_list(eattr *a, byte *buf, int buflen)
{
- int_set_format(a->u.ptr, 0, buf, buflen);
+ /* Truncates cluster lists larger than buflen, probably not a problem */
+ int_set_format(a->u.ptr, 0, -1, buf, buflen);
}
static int
@@ -735,13 +736,6 @@ bgp_get_bucket(struct bgp_proto *p, net *n, ea_list *attrs, int originate)
for(i=0; i<cnt; i++)
{
a = &new->attrs[i];
-#ifdef LOCAL_DEBUG
- {
- byte buf[EA_FORMAT_BUF_SIZE];
- ea_format(a, buf);
- DBG("\t%s\n", buf);
- }
-#endif
if (EA_PROTO(a->id) != EAP_BGP)
continue;
code = EA_ID(a->id);