aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rpc.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-rpc.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-rpc.c')
-rw-r--r--packet-rpc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/packet-rpc.c b/packet-rpc.c
index 3ed91188f7..aefb61eb6d 100644
--- a/packet-rpc.c
+++ b/packet-rpc.c
@@ -2,7 +2,7 @@
* Routines for rpc dissection
* Copyright 1999, Uwe Girlich <Uwe.Girlich@philosys.de>
*
- * $Id: packet-rpc.c,v 1.74 2001/10/29 21:13:08 guy Exp $
+ * $Id: packet-rpc.c,v 1.75 2001/11/26 04:52:51 hagbard Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -193,6 +193,8 @@ static gint ett_rpc_gids = -1;
static gint ett_rpc_gss_data = -1;
static gint ett_rpc_array = -1;
+static dissector_handle_t data_handle;
+
/* Hash table with info on RPC program numbers */
static GHashTable *rpc_progs;
@@ -2046,7 +2048,7 @@ dissect_rpc_message(tvbuff_t *tvb, int offset, packet_info *pinfo,
/* dissect any remaining bytes (incomplete dissection) as pure data in
the ptree */
- dissect_data(tvb, offset, pinfo, ptree);
+ call_dissector(data_handle,tvb_new_subset(tvb, offset,-1,tvb_reported_length_remaining(tvb,offset)), pinfo, ptree);
return TRUE;
}
@@ -2405,4 +2407,5 @@ proto_reg_handoff_rpc(void)
{
heur_dissector_add("tcp", dissect_rpc_tcp_heur, proto_rpc);
heur_dissector_add("udp", dissect_rpc_heur, proto_rpc);
+ data_handle = find_dissector("data");
}