diff options
author | hagbard <hagbard@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-11-26 04:52:51 +0000 |
---|---|---|
committer | hagbard <hagbard@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-11-26 04:52:51 +0000 |
commit | a90f625bec257a54bc43f9c352378bc4ee91495d (patch) | |
tree | b423f343624fa9219216fac49dd6a23b2c4d5586 /packet-tns.c | |
parent | 7b8d96ee2ccdb3be61d045d60dd9773742ce4455 (diff) |
Moved from using dissect_data() to using call_dissector()
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4269 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-tns.c')
-rw-r--r-- | packet-tns.c | 9 |
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"); } |