diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-02-14 05:28:44 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-02-14 05:28:44 +0000 |
commit | 8ea7c346b8cda2c11b35c2f6f738bf4b60428a22 (patch) | |
tree | 6a7fbfaf34fadeb576d0ba7d23fc85cf18e53c6c /packet-bgp.c | |
parent | 055f13d2d1476c4c43b9be9a7abb43cd9c3f7668 (diff) |
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
Diffstat (limited to 'packet-bgp.c')
-rw-r--r-- | packet-bgp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/packet-bgp.c b/packet-bgp.c index c5e78910a1..78390d7432 100644 --- a/packet-bgp.c +++ b/packet-bgp.c @@ -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; |