aboutsummaryrefslogtreecommitdiffstats
path: root/epan/osi-utils.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-08-29 18:52:54 +0000
committerGuy Harris <guy@alum.mit.edu>2002-08-29 18:52:54 +0000
commit79195136aaa365702c69a0ca1ab0cbe553a6bf44 (patch)
tree17812cffbc32d0f4b6a1a20fc5fc47efa1628f98 /epan/osi-utils.c
parentab3cf9bc61e0d023a3425fbb26eb7af5cd541a3c (diff)
From Hannes Gredler: make the IS-IS dissector more verbose in the INFO
field - specifically for IIHs the System-ID of the Hello; LSPs the LSP-ID, Sequence #, Lifetime; CSNPs the LAN-ID, Start LSP-ID, End LSP-ID. and change the display of some IDs. Clean up white space. svn path=/trunk/; revision=6128
Diffstat (limited to 'epan/osi-utils.c')
-rw-r--r--epan/osi-utils.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/epan/osi-utils.c b/epan/osi-utils.c
index b61b2dd176..73dd44f873 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.8 2002/08/28 20:40:44 jmayer Exp $
+ * $Id: osi-utils.c,v 1.9 2002/08/29 18:52:54 guy Exp $
* Laurent Deniel <deniel@worldnet.fr>
* Ralf Schneider <Ralf.Schneider@t-online.de>
*
@@ -77,11 +77,17 @@ gchar *print_system_id( const guint8 *buffer, int length ) {
}
cur = str;
- if ( ( 6 == length ) || ( 7 == length ) ) { /* Special case, print as MAC */
+ if ( ( 6 == length ) || /* System-ID */
+ ( 7 == length ) || /* LAN-ID */
+ ( 8 == length )) { /* LSP-ID */
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] );
+ if ( ( 7 == length ) ||
+ ( 8 == length )) {
+ sprintf( cur, ".%02x", buffer[6] );
+ }
+ if ( 8 == length ) {
+ sprintf( cur, "-%02x", buffer[7] );
}
}
else {