aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ethertype.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-ethertype.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-ethertype.c')
-rw-r--r--packet-ethertype.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/packet-ethertype.c b/packet-ethertype.c
index 42b5860ab0..c3adeb3a29 100644
--- a/packet-ethertype.c
+++ b/packet-ethertype.c
@@ -1,7 +1,7 @@
/* ethertype.c
* Routines for calling the right protocol for the ethertype.
*
- * $Id: packet-ethertype.c,v 1.21 2001/11/20 21:59:12 guy Exp $
+ * $Id: packet-ethertype.c,v 1.22 2001/11/26 04:52:49 hagbard Exp $
*
* Gilbert Ramirez <gram@alumni.rice.edu>
*
@@ -43,6 +43,8 @@
static dissector_table_t ethertype_dissector_table;
+static dissector_handle_t data_handle;
+
const value_string etype_vals[] = {
{ETHERTYPE_IP, "IP" },
{ETHERTYPE_IPv6, "IPv6" },
@@ -177,7 +179,7 @@ ethertype(guint16 etype, tvbuff_t *tvb, int offset_after_etype,
if (!dissector_found) {
/* No sub-dissector found.
Label rest of packet as "Data" */
- dissect_data(next_tvb, 0, pinfo, tree);
+ call_dissector(data_handle,next_tvb, pinfo, tree);
/* Label protocol */
switch (etype) {
@@ -263,3 +265,8 @@ proto_register_ethertype(void)
/* subdissector code */
ethertype_dissector_table = register_dissector_table("ethertype");
}
+
+void
+proto_reg_handoff_ethertype(void){
+ data_handle = find_dissector("data");
+}