diff options
author | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-11-26 05:13:14 +0000 |
---|---|---|
committer | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-11-26 05:13:14 +0000 |
commit | 4877553530fc356888edb95332b24eaeaadeee80 (patch) | |
tree | dece920ad31185cc514f42c162bd238ed5edcd14 /packet-tftp.c | |
parent | fcd5b352af60e034a4b63601272b43b6644029cd (diff) | |
download | wireshark-4877553530fc356888edb95332b24eaeaadeee80.tar.gz wireshark-4877553530fc356888edb95332b24eaeaadeee80.tar.bz2 wireshark-4877553530fc356888edb95332b24eaeaadeee80.zip |
Switched from using CHECK_DISPLAY_AS_DATA to using CHECK_DISPLAY_AS_X
which also takes a handle as an argument and thus doesn't call
dissect_data directly.
svn path=/trunk/; revision=4270
Diffstat (limited to 'packet-tftp.c')
-rw-r--r-- | packet-tftp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packet-tftp.c b/packet-tftp.c index 8f3e716901..39c40324db 100644 --- a/packet-tftp.c +++ b/packet-tftp.c @@ -5,7 +5,7 @@ * Craig Newell <CraigN@cheque.uq.edu.au> * RFC2347 TFTP Option Extension * - * $Id: packet-tftp.c,v 1.30 2001/11/03 02:25:26 guy Exp $ + * $Id: packet-tftp.c,v 1.31 2001/11/26 05:13:12 hagbard Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -55,6 +55,8 @@ static int hf_tftp_error_string = -1; static gint ett_tftp = -1; +static dissector_handle_t data_handle; + #define UDP_PORT_TFTP 69 #define TFTP_RRQ 1 @@ -99,7 +101,7 @@ dissect_tftp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) u_int i1; guint16 error; - CHECK_DISPLAY_AS_DATA(proto_tftp, tvb, pinfo, tree); + CHECK_DISPLAY_AS_X(data_handle,proto_tftp, tvb, pinfo, tree); pinfo->current_proto = "TFTP"; @@ -346,5 +348,6 @@ proto_register_tftp(void) void proto_reg_handoff_tftp(void) { + data_handle = find_dissector("data"); dissector_add("udp.port", UDP_PORT_TFTP, dissect_tftp, proto_tftp); } |