aboutsummaryrefslogtreecommitdiffstats
path: root/packet-bpdu.c
diff options
context:
space:
mode:
authorEd Warnicke <hagbard@physics.rutgers.edu>2001-11-26 04:52:51 +0000
committerEd Warnicke <hagbard@physics.rutgers.edu>2001-11-26 04:52:51 +0000
commitfcd5b352af60e034a4b63601272b43b6644029cd (patch)
treeb423f343624fa9219216fac49dd6a23b2c4d5586 /packet-bpdu.c
parent7537283cc691e6370db67fd5b0e393583074bf7f (diff)
Moved from using dissect_data() to using call_dissector()
svn path=/trunk/; revision=4269
Diffstat (limited to 'packet-bpdu.c')
-rw-r--r--packet-bpdu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/packet-bpdu.c b/packet-bpdu.c
index 22de38aaa4..fbbbc39a8a 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.27 2001/07/23 18:21:30 guy Exp $
+ * $Id: packet-bpdu.c,v 1.28 2001/11/26 04:52:49 hagbard Exp $
*
* Copyright 1999 Christophe Tronche <ch.tronche@computer.org>
*
@@ -78,6 +78,7 @@ static gint ett_bpdu = -1;
static dissector_handle_t gvrp_handle;
static dissector_handle_t gmrp_handle;
+static dissector_handle_t data_handle;
static void
dissect_bpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
@@ -213,7 +214,7 @@ dissect_bpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
bpdu_type == 0x80 ? "Topology Change Notification" : "Unknown");
if (bpdu_type != 0) {
- dissect_data(tvb, BPDU_TYPE + 1, pinfo, tree);
+ call_dissector(data_handle,tvb_new_subset(tvb, BPDU_TYPE + 1,-1,tvb_reported_length_remaining(tvb,BPDU_TYPE + 1)), pinfo, tree);
return;
}
@@ -346,6 +347,7 @@ proto_reg_handoff_bpdu(void)
* Get handle for the GMRP dissector.
*/
gmrp_handle = find_dissector("gmrp");
+ data_handle = find_dissector("data");
dissector_add("llc.dsap", SAP_BPDU, dissect_bpdu, proto_bpdu);
dissector_add("ppp.protocol", PPP_BPDU, dissect_bpdu, proto_bpdu);