aboutsummaryrefslogtreecommitdiffstats
path: root/packet-bpdu.c
diff options
context:
space:
mode:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2002-11-26 10:31:24 +0000
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2002-11-26 10:31:24 +0000
commitaacb79b4a0d7f3d0eff8315e0983a365d30feea3 (patch)
tree2f3a3f3f511b535c21e6dbf14a16e25943642af9 /packet-bpdu.c
parentf39e67d9379d32a63815135c268d97b063bc5a7c (diff)
The command says 0x20-0x2F: Adjust mask accordingly
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6673 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-bpdu.c')
-rw-r--r--packet-bpdu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-bpdu.c b/packet-bpdu.c
index c93ff583db..607c517003 100644
--- a/packet-bpdu.c
+++ b/packet-bpdu.c
@@ -1,7 +1,7 @@
/* packet-bpdu.c
* Routines for BPDU (Spanning Tree Protocol) disassembly
*
- * $Id: packet-bpdu.c,v 1.41 2002/10/08 19:18:57 guy Exp $
+ * $Id: packet-bpdu.c,v 1.42 2002/11/26 10:31:24 jmayer Exp $
*
* Copyright 1999 Christophe Tronche <ch.tronche@computer.org>
*
@@ -229,7 +229,7 @@ dissect_bpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (pinfo->dl_dst.type == AT_ETHER &&
pinfo->dl_dst.data[0] == 0x01 && pinfo->dl_dst.data[1] == 0x80 &&
pinfo->dl_dst.data[2] == 0xC2 && pinfo->dl_dst.data[3] == 0x00 &&
- pinfo->dl_dst.data[4] == 0x00 && ((pinfo->dl_dst.data[5] & 0x20) == 0x20)) {
+ pinfo->dl_dst.data[4] == 0x00 && ((pinfo->dl_dst.data[5] & 0xF0) == 0x20)) {
protocol_identifier = tvb_get_ntohs(tvb, BPDU_IDENTIFIER);