From fdf16eb65872b3bee02fb9e25c80ea32cf59f8e9 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sun, 3 Jul 2011 19:43:30 +0200 Subject: Prints full community lists during 'show route all'. --- proto/bgp/attrs.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'proto') 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; iattrs[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); -- cgit v1.2.3