aboutsummaryrefslogtreecommitdiffstats
path: root/packet-tns.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-tns.c
parent7537283cc691e6370db67fd5b0e393583074bf7f (diff)
Moved from using dissect_data() to using call_dissector()
svn path=/trunk/; revision=4269
Diffstat (limited to 'packet-tns.c')
-rw-r--r--packet-tns.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/packet-tns.c b/packet-tns.c
index d5c02747ec..de49fe861c 100644
--- a/packet-tns.c
+++ b/packet-tns.c
@@ -1,7 +1,7 @@
/* packet-tns.c
* Routines for Oracle TNS packet dissection
*
- * $Id: packet-tns.c,v 1.21 2001/10/08 14:32:06 nneul Exp $
+ * $Id: packet-tns.c,v 1.22 2001/11/26 04:52:51 hagbard Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -124,6 +124,8 @@ static gint ett_tns_data = -1;
static gint ett_tns_data_flag = -1;
static gint ett_sql = -1;
+static dissector_handle_t data_handle;
+
#define TCP_PORT_TNS 1521
static const value_string tns_type_vals[] = {
@@ -222,7 +224,7 @@ static void dissect_tns_data(tvbuff_t *tvb, int offset, packet_info *pinfo,
if ( data_tree )
{
- dissect_data(tvb,offset,pinfo,data_tree);
+ call_dissector(data_handle,tvb_new_subset(tvb,offset,-1,tvb_reported_length_remaining(tvb,offset)),pinfo,data_tree);
}
return;
@@ -811,7 +813,7 @@ dissect_tns(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
dissect_tns_data(tvb,offset,pinfo,tree,tns_tree);
break;
default:
- dissect_data(tvb,offset,pinfo,tns_tree);
+ call_dissector(data_handle,tvb_new_subset(tvb,offset,-1,tvb_reported_length_remaining(tvb,offset)),pinfo,tns_tree);
}
}
@@ -1034,4 +1036,5 @@ void
proto_reg_handoff_tns(void)
{
dissector_add("tcp.port", TCP_PORT_TNS, dissect_tns, proto_tns);
+ data_handle = find_dissector("data");
}