diff options
author | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-11-25 22:51:14 +0000 |
---|---|---|
committer | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-11-25 22:51:14 +0000 |
commit | 34dbc86e65d64bf747d948051ba8d4d3e967d6d1 (patch) | |
tree | 20244c5cfd8f43e50e4dccd78b8a9ce386894d49 /packet-h1.c | |
parent | a810a01338337a3802ff19ef9d952999181458c3 (diff) | |
download | wireshark-34dbc86e65d64bf747d948051ba8d4d3e967d6d1.tar.gz wireshark-34dbc86e65d64bf747d948051ba8d4d3e967d6d1.tar.bz2 wireshark-34dbc86e65d64bf747d948051ba8d4d3e967d6d1.zip |
Moved from using dissect_data to using call_dissector()
svn path=/trunk/; revision=4264
Diffstat (limited to 'packet-h1.c')
-rw-r--r-- | packet-h1.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packet-h1.c b/packet-h1.c index d03a333660..18835afbbb 100644 --- a/packet-h1.c +++ b/packet-h1.c @@ -2,7 +2,7 @@ * Routines for Sinec H1 packet disassembly * Gerrit Gehnen <G.Gehnen@atrie.de> * - * $Id: packet-h1.c,v 1.20 2001/06/18 02:17:46 guy Exp $ + * $Id: packet-h1.c,v 1.21 2001/11/25 22:51:13 hagbard Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -54,6 +54,8 @@ static int hf_h1_response_value = -1; static int hf_h1_empty_len = -1; static int hf_h1_empty = -1; +static dissector_handle_t data_handle; + #define EMPTY_BLOCK 0xFF #define OPCODE_BLOCK 0x01 #define REQUEST_BLOCK 0x03 @@ -245,7 +247,7 @@ static gboolean dissect_h1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) position += tvb_get_guint8(tvb,offset + position + 1); /* Goto next section */ } /* ..while */ next_tvb = tvb_new_subset(tvb, offset+tvb_get_guint8(tvb,offset+2), -1, -1); - dissect_data(next_tvb, 0, pinfo, tree); + call_dissector(data_handle,next_tvb, pinfo, tree); return TRUE; } @@ -318,4 +320,5 @@ void proto_reg_handoff_h1(void) { heur_dissector_add("cotp_is", dissect_h1, proto_h1); + data_handle = find_dissector("data"); } |