diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-06-28 22:43:49 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-06-28 22:43:49 +0000 |
commit | 96fad4b20a2206bbe15fbb177354a061cce58920 (patch) | |
tree | 454b36865fc2d975cc03627921ec01c59f87bad7 /epan/osi-utils.c | |
parent | fb7638472fad661be3db7c0bd810619117d57b23 (diff) | |
download | wireshark-96fad4b20a2206bbe15fbb177354a061cce58920.tar.gz |
From Hannes Gredler: fix display of OSI system IDs to use a dot rather
than a dash before the PSN byte; the dash is typically
only used to demarcate the fragment.
svn path=/trunk/; revision=5785
Diffstat (limited to 'epan/osi-utils.c')
-rw-r--r-- | epan/osi-utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/osi-utils.c b/epan/osi-utils.c index 47bb52c9f8..245612add0 100644 --- a/epan/osi-utils.c +++ b/epan/osi-utils.c @@ -2,7 +2,7 @@ * Routines for ISO/OSI network and transport protocol packet disassembly * Main entrance point and common functions * - * $Id: osi-utils.c,v 1.4 2001/05/15 18:58:15 guy Exp $ + * $Id: osi-utils.c,v 1.5 2002/06/28 22:43:49 guy Exp $ * Laurent Deniel <deniel@worldnet.fr> * Ralf Schneider <Ralf.Schneider@t-online.de> * @@ -89,7 +89,7 @@ gchar *print_system_id( const guint8 *buffer, int length ) { cur += sprintf(cur, "%02x%02x.%02x%02x.%02x%02x", buffer[0], buffer[1], buffer[2], buffer[3], buffer[4], buffer[5] ); if ( 7 == length ) { - sprintf( cur, "-%02x", buffer[6] ); + sprintf( cur, ".%02x", buffer[6] ); } } else { @@ -101,7 +101,7 @@ gchar *print_system_id( const guint8 *buffer, int length ) { cur += sprintf( cur, "%02x.", buffer[tmp++] ); } if ( 1 == tmp ) { /* Special case for Designated IS */ - sprintf( --cur, "-%02x", buffer[tmp] ); + sprintf( --cur, ".%02x", buffer[tmp] ); } else { for ( ; tmp < length; ) { /* print the rest without dot */ |