From Laurent Rabret: print the correct length in the Extended

Communities attribute in a BGP Update message.

Also, get rid of an extra space before a colon in the display for that
attribute, which isn't in other attributes.

svn path=/trunk/; revision=4732
This commit is contained in:
Guy Harris 2002-02-14 05:28:44 +00:00
parent 055f13d2d1
commit 8ea7c346b8
2 changed files with 5 additions and 5 deletions

View File

@ -749,6 +749,7 @@ Laurent Rabret <laurent.rabret[AT]rd.francetelecom.fr> {
protocols get passed through, with PPP protocol types
appearing in the Ethernet protocol type field)
PAP support
BGP bug fix
}
nuf si <gnippiks[AT]yahoo.com> {

View File

@ -2,7 +2,7 @@
* Routines for BGP packet dissection.
* Copyright 1999, Jun-ichiro itojun Hagino <itojun@itojun.org>
*
* $Id: packet-bgp.c,v 1.54 2002/01/30 23:04:02 guy Exp $
* $Id: packet-bgp.c,v 1.55 2002/02/14 05:25:52 guy Exp $
*
* Supports:
* RFC1771 A Border Gateway Protocol 4 (BGP-4)
@ -1064,11 +1064,10 @@ dissect_bgp_update(tvbuff_t *tvb, int offset, proto_tree *tree)
if (q < end) strncat(ext_com_str, ",", 1);
}
ti = proto_tree_add_text(subtree,tvb,o+i,alen+aoff,
"%s : %s (%u %s)",
"%s: %s (%u %s)",
val_to_str(bgpa.bgpa_type,bgpattr_type,"Unknown"),
ext_com_str,
alen,
(alen == 1) ? "byte" : "bytes");
ext_com_str, alen + aoff,
(alen + aoff == 1) ? "byte" : "bytes");
free(ext_com_str);
break;