diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2011-07-03 19:43:30 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2011-07-03 19:43:30 +0200 |
commit | fdf16eb65872b3bee02fb9e25c80ea32cf59f8e9 (patch) | |
tree | 484d2d04d83958c7adc1198a7ebd445467459330 /proto/bgp/attrs.c | |
parent | 6370d6f61b30b2390727eee8136e0e575dff609f (diff) |
Prints full community lists during 'show route all'.
Diffstat (limited to 'proto/bgp/attrs.c')
-rw-r--r-- | proto/bgp/attrs.c | 12 |
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); |