aboutsummaryrefslogtreecommitdiffstats
path: root/packet-tr.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-tr.c
parent7537283cc691e6370db67fd5b0e393583074bf7f (diff)
downloadwireshark-fcd5b352af60e034a4b63601272b43b6644029cd.tar.gz
wireshark-fcd5b352af60e034a4b63601272b43b6644029cd.tar.bz2
wireshark-fcd5b352af60e034a4b63601272b43b6644029cd.zip
Moved from using dissect_data() to using call_dissector()
svn path=/trunk/; revision=4269
Diffstat (limited to 'packet-tr.c')
-rw-r--r--packet-tr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/packet-tr.c b/packet-tr.c
index 5c2b250628..aba6276926 100644
--- a/packet-tr.c
+++ b/packet-tr.c
@@ -2,7 +2,7 @@
* Routines for Token-Ring packet disassembly
* Gilbert Ramirez <gram@alumni.rice.edu>
*
- * $Id: packet-tr.c,v 1.65 2001/11/20 21:59:13 guy Exp $
+ * $Id: packet-tr.c,v 1.66 2001/11/26 04:52:51 hagbard Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -118,6 +118,7 @@ static const value_string direction_vals[] = {
static dissector_handle_t trmac_handle;
static dissector_handle_t llc_handle;
+static dissector_handle_t data_handle;
/*
* DODGY LINUX HACK DODGY LINUX HACK
@@ -527,7 +528,7 @@ dissect_tr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
break;
default:
/* non-MAC, non-LLC, i.e., "Reserved" */
- dissect_data(next_tvb, 0, pinfo, tree);
+ call_dissector(data_handle,next_tvb, pinfo, tree);
break;
}
}
@@ -678,6 +679,7 @@ proto_reg_handoff_tr(void)
*/
trmac_handle = find_dissector("trmac");
llc_handle = find_dissector("llc");
+ data_handle = find_dissector("data");
dissector_add("wtap_encap", WTAP_ENCAP_TOKEN_RING, dissect_tr,
proto_tr);