aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-02-05 02:06:27 +0000
committerGuy Harris <guy@alum.mit.edu>2001-02-05 02:06:27 +0000
commit39d2be965be50f0fec8048e44450862643787042 (patch)
tree3bb156ea995251e12ced5acba816d8283d178c09
parent3ce594a981ef5c5fd5ba1e4133b07db7e1a71f14 (diff)
Maximum frame size values in the second byte of the routing control
information aren't shifted right 4 bytes when put into the protocol tree; shift left by 4 bytes the values in the value_string table for them. A value of 7 means 65535 bytes. svn path=/trunk/; revision=2992
-rw-r--r--packet-tr.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/packet-tr.c b/packet-tr.c
index c9fa411a9e..74325e6ff9 100644
--- a/packet-tr.c
+++ b/packet-tr.c
@@ -2,7 +2,7 @@
* Routines for Token-Ring packet disassembly
* Gilbert Ramirez <gram@xiexie.org>
*
- * $Id: packet-tr.c,v 1.58 2001/01/21 22:10:22 guy Exp $
+ * $Id: packet-tr.c,v 1.59 2001/02/05 02:06:27 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -100,14 +100,15 @@ static const value_string broadcast_vals[] = {
};
static const value_string max_frame_size_vals[] = {
- { 0, "516" },
- { 1, "1500" },
- { 2, "2052" },
- { 3, "4472" },
- { 4, "8144" },
- { 5, "11407" },
- { 6, "17800" },
- { 0, NULL }
+ { 0 << 4, "516" },
+ { 1 << 4, "1500" },
+ { 2 << 4, "2052" },
+ { 3 << 4, "4472" },
+ { 4 << 4, "8144" },
+ { 5 << 4, "11407" },
+ { 6 << 4, "17800" },
+ { 7 << 4, "65535" },
+ { 0, NULL }
};
static const value_string direction_vals[] = {