summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-06-28 22:43:49 +0000
committerGuy Harris <guy@alum.mit.edu>2002-06-28 22:43:49 +0000
commit96fad4b20a2206bbe15fbb177354a061cce58920 (patch)
tree454b36865fc2d975cc03627921ec01c59f87bad7
parentfb7638472fad661be3db7c0bd810619117d57b23 (diff)
downloadwireshark-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
-rw-r--r--AUTHORS2
-rw-r--r--epan/osi-utils.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/AUTHORS b/AUTHORS
index 0753f878d1..91e35b3817 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -685,6 +685,8 @@ Hannes Gredler <hannes[AT]juniper.net> {
HELLO message support in RSVP
Labeled unicast support for BGP
BGP bug fixes
+ Fix display of OSI system IDs to use a dot rather than a dash
+ before the PSN byte
}
Inoue <inoue[AT]ainet.or.jp> {
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 */