diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-02-05 02:06:27 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-02-05 02:06:27 +0000 |
commit | e80e3906f2cd8ea82ff10b2a8baf07fa24543f99 (patch) | |
tree | 3bb156ea995251e12ced5acba816d8283d178c09 /packet-tr.c | |
parent | 4b6889d43140973c0c57bf0c9d103a8ccf724aef (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2992 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-tr.c')
-rw-r--r-- | packet-tr.c | 19 |
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[] = { |