aboutsummaryrefslogtreecommitdiffstats
path: root/packet-tr.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2001-02-23 17:19:52 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2001-02-23 17:19:52 +0000
commit62a962183160b48b0609141f6a037aec60d7aa51 (patch)
tree52d1469c3403602424eaba4c605003f7b401867e /packet-tr.c
parent58afc7c0b40f34a47a0573b7663085b4bdb72276 (diff)
Narrow the case where we check for stripped source-route bits. Since the
test depends on finding IPX or SNAP info, we can limit the test to LLC frames. svn path=/trunk/; revision=3072
Diffstat (limited to 'packet-tr.c')
-rw-r--r--packet-tr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-tr.c b/packet-tr.c
index 74325e6ff9..8486c2b3f7 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.59 2001/02/05 02:06:27 guy Exp $
+ * $Id: packet-tr.c,v 1.60 2001/02/23 17:19:52 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -364,7 +364,7 @@ dissect_tr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
* see if there's a SNAP or IPX field right after
* my RIF fields.
*/
- if (!source_routed && trn_rif_bytes > 0) {
+ if (frame_type == 1 && !source_routed && trn_rif_bytes > 0) {
TRY {
c1_nonsr = tvb_get_guint8(tr_tvb, 14);
@@ -404,8 +404,8 @@ dissect_tr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
in front of the other #ifdef linux. If we're sniffing our own NIC,
we get a full RIF, sometimes with garbage */
TRY {
- if ((source_routed && trn_rif_bytes == 2 && frame_type == 1) ||
- (!source_routed && frame_type == 1)) {
+ if (frame_type == 1 && ( (source_routed && trn_rif_bytes == 2) ||
+ !source_routed) ) {
/* look for SNAP or IPX only */
if (
(tvb_get_ntohs(tr_tvb, 0x20) == 0xaaaa &&